diff options
author | madmaxoft <github@xoft.cz> | 2014-07-17 19:13:23 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-17 19:13:23 +0200 |
commit | 7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4 (patch) | |
tree | 54a0e32d887554b1131c8c9123027f16a7faf5d8 /src/MobCensus.cpp | |
parent | Fixed basic whitespace problems. (diff) | |
download | cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.tar cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.tar.gz cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.tar.bz2 cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.tar.lz cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.tar.xz cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.tar.zst cuberite-7fff12bfacbb4bef1c02cea0ec10fdc9a6fb64e4.zip |
Diffstat (limited to 'src/MobCensus.cpp')
-rw-r--r-- | src/MobCensus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MobCensus.cpp b/src/MobCensus.cpp index d5a341ef7..4109aff07 100644 --- a/src/MobCensus.cpp +++ b/src/MobCensus.cpp @@ -19,7 +19,7 @@ void cMobCensus::CollectMob(cMonster & a_Monster, cChunk & a_Chunk, double a_Dis bool cMobCensus::IsCapped(cMonster::eFamily a_MobFamily) { - 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 + 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 chunks. That's why we use 256 * (19*19) / (17*17) = 319 // MG TODO : code the correct count if ((GetCapMultiplier(a_MobFamily) * GetNumChunks()) / ratio >= m_MobFamilyCollecter.GetNumberOfCollectedMobs(a_MobFamily)) |