mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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:
@@ -215,7 +215,7 @@ if (isPlayer cursorTarget) then {
|
||||
if (DZE_plotforLife) then {
|
||||
_charID = [_unit] call FNC_GetPlayerUID;
|
||||
};
|
||||
_friendlies = [player, _unit, DZE_plotManagement] call FNC_check_owner;
|
||||
_friendlies = [player, _unit] call FNC_check_owner;
|
||||
if !(_charID in _friendlies) then {
|
||||
r_action = true;
|
||||
_action = _unit addAction ["Tag as friendly", "\z\addons\dayz_code\actions\player_tagFriendly.sqf", [], 0, false, true];
|
||||
|
||||
Reference in New Issue
Block a user