diff --git a/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf b/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf index 057ae78..b35f6f1 100644 --- a/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf +++ b/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf @@ -54,7 +54,6 @@ while {true} do { //diag_log format["_fnc_mainThread: 60 second events run at %1",diag_tickTime]; _timer1min = diag_tickTime; - [] call blck_fnc_timeAcceleration; [] call blck_fnc_spawnPendingMissions; //diag_log format["_fnc_spawnPendingMissions: blck_numberUnderwaterDynamicMissions = %1 | if (blck_dynamicUMS_MissionsRuning < blck_numberUnderwaterDynamicMissions) then @@ -83,13 +82,13 @@ while {true} do //diag_log format["_fnc_mainThread: active SQFscripts include: %1",diag_activeSQFScripts]; diag_log format["_fnc_mainThread: active scripts include: %1",diag_activeScripts]; #endif - }; - if (blck_useTimeAcceleration) then + }; + if (diag_tickTime - _timer5min > 300) then { - if (diag_tickTime - _timer5min > 300) then { - + if (blck_useTimeAcceleration) then + { _timer5min = diag_tickTime; + [] call blck_fnc_timeAcceleration; }; }; - }; diff --git a/@GMS/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf b/@GMS/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf index d2cb54e..28c9944 100644 --- a/@GMS/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf +++ b/@GMS/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf @@ -30,9 +30,10 @@ _time = dayTime; // blck_debugMode3 #ifdef blck_debugMode -if (blck_debugLevel > 2) then +if (blck_debugLevel >= 2) then { diag_log "fnc_Time:: Debug settings ON"; + diag_log format["_fnc_Time:: --> blck_useTimeAcceleration = %1", blck_useTimeAcceleration]; diag_log format["_fnc_Time:: -- > _sunrise = %1 | _sunset = %2 | _time = %3",_sunrise,_sunset,_time]; }; #endif @@ -41,7 +42,7 @@ if (blck_debugLevel > 2) then if (_time > (_sunset + 0.5) || _time < (_sunrise - 0.5)) exitWith { setTimeMultiplier blck_timeAccelerationNight; #ifdef blck_debugMode - if (blck_debugLevel > 2) then + if (blck_debugLevel >= 2) then { diag_log format["NIGHT TIMGE ADJUSTMENT:: time accel updated to %1; time of day = %2",timeMultiplier,dayTime]; }; @@ -53,7 +54,7 @@ if (_time > (_sunrise + 0.5) && _time < (_sunset - 0.5)) exitWith { setTimeMultiplier blck_timeAccelerationDay; //diag_log format["DAYTIME ADJUSTMENT:: time accel updated to %1; time of day = %2",timeMultiplier,dayTime]; #ifdef blck_debugMode - if (blck_debugLevel > 2) then + if (blck_debugLevel >= 2) then { diag_log format["DAYTIME ADJUSTMENT:: time accel updated to %1; time of day = %2",timeMultiplier,dayTime]; }; @@ -63,7 +64,7 @@ if (_time > (_sunrise + 0.5) && _time < (_sunset - 0.5)) exitWith { // default setTimeMultiplier blck_timeAccelerationDusk; #ifdef blck_debugMode -if (blck_debugLevel > 2) then +if (blck_debugLevel >= 2) then { diag_log format["DUSK ADJUSTMENT:: time accel updated to %1; time of day = %2",timeMultiplier,dayTime]; };