Take timeMultiplier into account for weatherchange

This commit is contained in:
Wyqer 2019-07-23 22:04:30 +02:00
parent bc5b01e581
commit 959dcfe01d
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ diag_log format ["[KP LIBERATION] [WEATHER] Set initial weather to: %1 - Param V
while {GRLIB_endgame == 0} do {
_newWeather = selectRandom _weathers;
3600 setOvercast _newWeather;
(3600 * timeMultiplier) setOvercast _newWeather;
diag_log format ["[KP LIBERATION] [WEATHER] Set next weather transition to: %1 - Time: %2", _newWeather, diag_tickTime];
sleep 3000; // Slighty less than weather transition time, as sleep duration is depending on FPS
};