From 19864d5be69916d64b4966df209b7df6ad6507df Mon Sep 17 00:00:00 2001 From: ulteq Date: Tue, 5 May 2015 10:37:51 +0200 Subject: [PATCH] Fixed a bug in the humidity calculation --- addons/weather/functions/fnc_updateHumidity.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/weather/functions/fnc_updateHumidity.sqf b/addons/weather/functions/fnc_updateHumidity.sqf index dce031b3f3..df6e64df5d 100644 --- a/addons/weather/functions/fnc_updateHumidity.sqf +++ b/addons/weather/functions/fnc_updateHumidity.sqf @@ -14,7 +14,7 @@ private ["_month", "_avgTemperature", "_pS1", "_pS2"]; _month = date select 1; -GVAR(currentHumidity) = (GVAR(Humidity) select _month) / 100; +GVAR(currentHumidity) = (GVAR(Humidity) select (_month - 1)) / 100; if (rain > 0 && overcast > 0.7) then { GVAR(currentHumidity) = 1;