diff options
author | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 01:43:55 +0200 |
---|---|---|
committer | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 01:43:55 +0200 |
commit | 04151677d57905e35993eac4899e6bd72831ec6f (patch) | |
tree | 3f14d82f1f568975ef73aec58b4b27c45ef58361 /source/World.cpp | |
parent | Implementing the MobSpawner (not used yet) that contains spawning rules (diff) | |
download | cuberite-04151677d57905e35993eac4899e6bd72831ec6f.tar cuberite-04151677d57905e35993eac4899e6bd72831ec6f.tar.gz cuberite-04151677d57905e35993eac4899e6bd72831ec6f.tar.bz2 cuberite-04151677d57905e35993eac4899e6bd72831ec6f.tar.lz cuberite-04151677d57905e35993eac4899e6bd72831ec6f.tar.xz cuberite-04151677d57905e35993eac4899e6bd72831ec6f.tar.zst cuberite-04151677d57905e35993eac4899e6bd72831ec6f.zip |
Diffstat (limited to '')
-rw-r--r-- | source/World.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/World.cpp b/source/World.cpp index 4bde20ede..17c5ccb3e 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -622,7 +622,7 @@ void cWorld::Tick(float a_Dt) UnloadUnusedChunks(); } - TickSpawnMobs(a_Dt); + TickMobs(a_Dt); std::vector<int> m_RSList_copy(m_RSList); @@ -707,13 +707,13 @@ void cWorld::TickWeather(float a_Dt) -void cWorld::TickSpawnMobs(float a_Dt) +void cWorld::TickMobs(float a_Dt) { - if (!m_bAnimals || (m_WorldAge - m_LastSpawnMonster <= m_SpawnMonsterRate)) + if (!m_bAnimals) { return; } - +/* cMobCensus MobCensus; m_ChunkMap->CollectMobCensus(MobCensus); MobCensus.logd(); @@ -810,6 +810,7 @@ void cWorld::TickSpawnMobs(float a_Dt) // A proper mob type was selected, now spawn the mob: SpawnMob(SpawnPos.x, SpawnPos.y, SpawnPos.z, (cMonster::eType)MobType); } +*/ } |