summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-24 16:45:13 +0200
committermadmaxoft <github@xoft.cz>2013-10-24 16:45:13 +0200
commit5331555708ce3bfc4417b2f7c788fff98e81a858 (patch)
tree2a3351f51e136135d89d533c7a66f2ed881c0a81 /source/World.cpp
parentcPickup cleanup. (diff)
downloadcuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.tar
cuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.tar.gz
cuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.tar.bz2
cuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.tar.lz
cuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.tar.xz
cuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.tar.zst
cuberite-5331555708ce3bfc4417b2f7c788fff98e81a858.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/World.cpp b/source/World.cpp
index e2db77666..e62794781 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -755,9 +755,9 @@ void cWorld::TickMobs(float a_Dt)
for (int i = 0; i < ARRAYCOUNT(AllFamilies); i++)
{
cMonster::eFamily Family = AllFamilies[i];
- int spawnrate = cMonster::GetSpawnRate(Family);
+ int SpawnDelay = cMonster::GetSpawnDelay(Family);
if (
- (m_LastSpawnMonster[Family] > m_WorldAge - spawnrate) || // Not reached the needed tiks before the next round
+ (m_LastSpawnMonster[Family] > m_WorldAge - SpawnDelay) || // Not reached the needed ticks before the next round
MobCensus.IsCapped(Family)
)
{