@@ -162,10 +162,25 @@ class WeatherRandomizer
162162 /* ******************************************************/
163163 WeatherRandomizer ()
164164 {
165- RB_C_DO_CONFIG (" TimecycleRandomizer" , RandomizeWeather,
166- RandomizeTimecycle, RandomizeTimecycleOdds,
167- RandomizeTimeOdds, RandomizeEveryFade, RainOdds,
168- ThunderstormOdds, RandomSnow, SnowOdds);
165+ if (!ConfigManager ::ReadConfig (
166+ " TimecycleRandomizer" ,
167+ std::make_pair (" RandomizeWeather" ,
168+ &Config ().RandomizeWeather ),
169+ std::make_pair (" RandomizeTimecycle" ,
170+ &Config ().RandomizeTimecycle ),
171+ std::make_pair (" RandomizeTimecycleOdds" ,
172+ &Config ().RandomizeTimecycleOdds ),
173+ std::make_pair (" RandomizeTimeOdds" ,
174+ &Config ().RandomizeTimeOdds ),
175+ std::make_pair (" RandomizeEveryFade" ,
176+ &Config ().RandomizeEveryFade ),
177+ std::make_pair (" RainOdds" , &Config ().RainOdds ),
178+ std::make_pair (" ThunderstormOdds" ,
179+ &Config ().ThunderstormOdds ),
180+ std::make_pair (" RandomSnow" , &Config ().RandomSnow ),
181+ std::make_pair (" SnowOdds" , &Config ().SnowOdds )))
182+ return ;
183+ ;
169184
170185 InitialiseAllComponents ();
171186
0 commit comments