summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index b5ed59ccb..48fb3a3ad 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -673,13 +673,13 @@ void cWorld::ChangeWeather()
void cWorld::TickWeather(float a_Dt)
{
- if(m_WeatherInterval == 0)
+ if (m_WeatherInterval == 0)
{
ChangeWeather();
- cRoot::Get()->GetPluginManager()->CallHook( cPluginManager::HOOK_WEATHER_CHANGE, 0 );
+ cRoot::Get()->GetPluginManager()->CallHookWeatherChanged(this);
- switch(GetWeather())
+ switch (GetWeather())
{
case eWeather_Sunny:
m_WeatherInterval = 14400 + (m_TickRand.randInt() % 4800); // 12 - 16 minutes