mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
less code same logic
This commit is contained in:
@@ -324,12 +324,7 @@ if (!isDedicated) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
player_setDate = {
|
player_setDate = {
|
||||||
private ["_setdatebool"];
|
if (!([_this, date] call BIS_fnc_areEqual)) then {
|
||||||
_setdatebool = false;
|
|
||||||
if (!([_this, date] call BIS_fnc_areEqual)) exitWith {
|
|
||||||
_setdatebool = true;
|
|
||||||
};
|
|
||||||
if (_setdatebool) then {
|
|
||||||
setDate _this;
|
setDate _this;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user