summaryrefslogtreecommitdiffstats
path: root/source/MobSpawner.cpp
diff options
context:
space:
mode:
authormgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 03:30:09 +0200
committermgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 03:30:09 +0200
commitd67e8dcca5dda496480f3e983a0cf72c1d047bf7 (patch)
treec7808551cb07152cb82d37774187450193baab7f /source/MobSpawner.cpp
parentAdding glue to call everything done in last commits - now the mobs are spawning (diff)
downloadcuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.tar
cuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.tar.gz
cuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.tar.bz2
cuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.tar.lz
cuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.tar.xz
cuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.tar.zst
cuberite-d67e8dcca5dda496480f3e983a0cf72c1d047bf7.zip
Diffstat (limited to '')
-rw-r--r--source/MobSpawner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/MobSpawner.cpp b/source/MobSpawner.cpp
index 19e3739cd..38234ae67 100644
--- a/source/MobSpawner.cpp
+++ b/source/MobSpawner.cpp
@@ -6,6 +6,7 @@
#include "Mobs/Monster.h"
#include "Mobs/IncludeAllMonsters.h"
+#include <sstream>
cMobSpawner::tMobTypes& cMobSpawner::m_MobTypes()
{
@@ -178,7 +179,7 @@ bool cMobSpawner::CanSpawnHere(cMonster::eType a_MobType, BLOCKTYPE a_BlockType,
{
if (a_MobType == cMonster::mtChicken || a_MobType == cMonster::mtPig || a_MobType == cMonster::mtCow || a_MobType == cMonster::mtSheep)
{
- LOGD("Trying to spawn an animal");
+ LOGD(oss.str().c_str());
toReturn = (
a_BlockType_below == E_BLOCK_GRASS /*&& // MG TODO
a_LightLevel >= 9 */