summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-14 21:20:31 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-14 21:20:31 +0200
commite1b5f0af046f2c4c05789adf33eef5404adba2c3 (patch)
tree6738e8d63067ef348113e0ae50433722ec952c38 /source/cWorld.cpp
parentAdded a world parameter to HOOK_CHUNK_GENERATING. (diff)
downloadcuberite-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.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