summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormgueydan <gueydan.mathieuÃ@gmail.com>2013-09-07 22:19:56 +0200
committermgueydan <gueydan.mathieuÃ@gmail.com>2013-09-07 22:19:56 +0200
commitd2eb58f27780a3c65fedd0d21d152ee8866ebb86 (patch)
tree05160377f78b97b4916956eebfd07f8a830a8916 /source/World.cpp
parentAdding a getType in Monster that return an enum instead of an int or char (diff)
downloadcuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar
cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.gz
cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.bz2
cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.lz
cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.xz
cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.zst
cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index d0fa588b0..4bde20ede 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -29,6 +29,7 @@
// Mobs:
#include "Mobs/IncludeAllMonsters.h"
+#include "MobCensus.h"
#include "OSSupport/MakeDir.h"
#include "MersenneTwister.h"
@@ -712,6 +713,10 @@ void cWorld::TickSpawnMobs(float a_Dt)
{
return;
}
+
+ cMobCensus MobCensus;
+ m_ChunkMap->CollectMobCensus(MobCensus);
+ MobCensus.logd();
m_LastSpawnMonster = m_WorldAge;
Vector3d SpawnPos;