diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-14 21:20:31 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-14 21:20:31 +0200 |
commit | e1b5f0af046f2c4c05789adf33eef5404adba2c3 (patch) | |
tree | 6738e8d63067ef348113e0ae50433722ec952c38 /source/cWorld.cpp | |
parent | Added a world parameter to HOOK_CHUNK_GENERATING. (diff) | |
download | cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.tar cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.tar.gz cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.tar.bz2 cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.tar.lz cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.tar.xz cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.tar.zst cuberite-e1b5f0af046f2c4c05789adf33eef5404adba2c3.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.cpp | 6 |
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 |