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:
ebaydayz
2016-05-20 12:14:48 -04:00
parent 1a5d26f26d
commit edd53597b0
9 changed files with 17 additions and 18 deletions

View File

@@ -4,15 +4,14 @@ private ["_player","_object","_playerUID","_ObjectOwner","_owner","_friendlies",
_player = _this select 0;
_Object = _this select 1;
_PlotManagement = _this select 2;
_Owner = false;
_friendly = false;
_friendlies = [];
_ObjectOwner = "0";
if (_PlotManagement) then {
_friendlies = [_Object, true, false] call dze_getPlotFriends;
if (DZE_plotManagement) then {
_friendlies = [_Object, true] call dze_getPlotFriends;
} else {
_friendlies = _player getVariable ["friendlyTo",[]];
};