diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index 82c576269..e6d5f55fc 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -324,12 +324,7 @@ if (!isDedicated) then { }; player_setDate = { - private ["_setdatebool"]; - _setdatebool = false; - if (!([_this, date] call BIS_fnc_areEqual)) exitWith { - _setdatebool = true; - }; - if (_setdatebool) then { + if (!([_this, date] call BIS_fnc_areEqual)) then { setDate _this; }; };