mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Don't pass DZE_plotManagement to fn_check_owner
The whole point of a global variable is you do not need to pass it. DZE_plotManagement and DZE_plotmanagementAdmins are always defined and do not change, so there is no need to pass them as parameters.
This commit is contained in:
@@ -42,7 +42,7 @@ if(_IsNearPlot == 0) then {
|
||||
_canBuild = true;
|
||||
} else {
|
||||
if (DZE_plotManagement || DZE_plotforLife) then {
|
||||
_buildcheck = [player, _nearestPole, DZE_plotManagement] call FNC_check_owner;
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner;
|
||||
_isowner = _buildcheck select 0;
|
||||
_isfriendly = _buildcheck select 1;
|
||||
if (_isowner || _isfriendly) then {
|
||||
|
||||
Reference in New Issue
Block a user