|
12 | 12 | #include <game/CWeather.h> |
13 | 13 | #include <game/CColPoint.h> |
14 | 14 | #include <game/CCoronas.h> |
| 15 | +#include <game/CClock.h> |
15 | 16 | #include "lua/CLuaFunctionParser.h" |
16 | 17 |
|
17 | 18 | void CLuaWorldDefs::LoadFunctions() |
@@ -2129,7 +2130,7 @@ std::variant<bool, float, CLuaMultiReturn<float, float, float>> CLuaWorldDefs::G |
2129 | 2130 | case eWorldProperty::WEATHER_RAINBOW: |
2130 | 2131 | return g_pGame->GetWeather()->GetRainbow(); |
2131 | 2132 | case eWorldProperty::TIME_CYCLE: |
2132 | | - return g_pGame->GetWeather()->GetTimerCycleEnabled(); |
| 2133 | + return g_pGame->GetClock()->GetTimerCycleEnabled(); |
2133 | 2134 | } |
2134 | 2135 | return false; |
2135 | 2136 | } |
@@ -2203,7 +2204,7 @@ bool CLuaWorldDefs::SetWorldProperty(eWorldProperty property, std::variant<bool, |
2203 | 2204 | case eWorldProperty::WEATHER_RAINBOW: |
2204 | 2205 | return g_pGame->GetWeather()->SetRainbow(arg1); |
2205 | 2206 | case eWorldProperty::TIME_CYCLE: |
2206 | | - return g_pGame->GetWeather()->SetTimerCycle(argBool); |
| 2207 | + return g_pGame->GetClock()->SetTimerCycle(argBool); |
2207 | 2208 | } |
2208 | 2209 | return false; |
2209 | 2210 | } |
@@ -2253,7 +2254,7 @@ bool CLuaWorldDefs::ResetWorldProperty(eWorldProperty property) |
2253 | 2254 | case eWorldProperty::WEATHER_RAINBOW: |
2254 | 2255 | return g_pGame->GetWeather()->ResetRainbow(); |
2255 | 2256 | case eWorldProperty::TIME_CYCLE: |
2256 | | - return g_pGame->GetWeather()->ResetTimerCycle(); |
| 2257 | + return g_pGame->GetClock()->ResetTimerCycle(); |
2257 | 2258 | } |
2258 | 2259 | return false; |
2259 | 2260 | } |
0 commit comments