diff options
author | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 12:25:07 +0200 |
---|---|---|
committer | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 12:25:07 +0200 |
commit | b4bb2553445d44dc8ca03bb33d801cf620f71898 (patch) | |
tree | 84df119295e37defdacd615b7b9f738b995a08d6 /source/MobCensus.cpp | |
parent | replacing asserts by ASSERTs (diff) | |
download | cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.gz cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.bz2 cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.lz cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.xz cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.zst cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.zip |
Diffstat (limited to 'source/MobCensus.cpp')
-rw-r--r-- | source/MobCensus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/MobCensus.cpp b/source/MobCensus.cpp index 4984c53c4..612f25916 100644 --- a/source/MobCensus.cpp +++ b/source/MobCensus.cpp @@ -50,7 +50,7 @@ void cMobCensus::CollectMob(cMonster& a_Monster, cChunk& a_Chunk, double a_Dista bool cMobCensus::isCaped(cMonster::eFamily a_MobFamily) { bool toReturn = true; - const int ratio = 319; // this should be 256 as we are only supposed to take account from chuncks that are in 17x17 from a player + const int ratio = 319; // this should be 256 as we are only supposed to take account from chunks that are in 17x17 from a player // but for now, we use all chunks loaded by players. that means 19 x 19 chucks. That's why we use 256 * (19*19) / (17*17) = 319 // MG TODO : code the correct count tCapMultipliersMap::const_iterator capMultiplier = m_CapMultipliers().find(a_MobFamily); @@ -64,7 +64,7 @@ bool cMobCensus::isCaped(cMonster::eFamily a_MobFamily) return toReturn; } -void cMobCensus::CollectSpawnableChunck(cChunk& a_Chunk) +void cMobCensus::CollectSpawnableChunk(cChunk& a_Chunk) { m_EligibleForSpawnChunks.insert(&a_Chunk); } |