setdate experiment #2

This commit is contained in:
[VB]AWOL
2013-10-25 01:19:02 -05:00
parent a755f7bdd4
commit 2a4130349c

View File

@@ -396,16 +396,13 @@ if (!isDedicated) then {
};
player_setDate = {
private ["_setdatebool","_forEachIndex","_newdate","_n"];
private ["_setdatebool"];
_setdatebool = false;
_n = _this;
{
if (_x != (_n select _forEachIndex)) exitWith {
_setdatebool = true;
};
} forEach date;
if (!([_this, date] call BIS_fnc_areEqual)) exitWith {
_setdatebool = true;
};
if (_setdatebool) then {
setDate _newdate;
setDate _this;
};
};