From 1728aebb8c761cb509f4cdd5d4f3f560565b3e35 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Tue, 28 Apr 2015 17:11:46 +0100 Subject: [PATCH] Fix #958. Issue was caused by an old bit of code that had been added in the force weather cheat to keep it sunny for longer before realising how the climate operated correctly. Instead now it sets the weather to the desired value and starts a normal amount of waiting time before returning to the normal weather cycle. --- src/world/climate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/world/climate.c b/src/world/climate.c index e50af29358..d687c1e5ff 100644 --- a/src/world/climate.c +++ b/src/world/climate.c @@ -191,8 +191,6 @@ void climate_update() } void climate_force_weather(uint8 weather){ - gClimateNextWeather = 0; - RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_WEATHER, sint8) = weather; RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_WEATHER_GLOOM, sint8) = climate_weather_data[weather].gloom_level; RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_RAIN_LEVEL, sint8) = climate_weather_data[weather].rain_level;