mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 09:59:18 +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:
@@ -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",[]];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user