diff options
author | Mattes D <github@xoft.cz> | 2015-05-09 09:25:09 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-09 12:58:54 +0200 |
commit | c13b1931ff26a5643c9fe68ab32b1e362cfacd70 (patch) | |
tree | 0c19db714a5dd08eb2775b39487e96cf317cf867 /src/MobCensus.cpp | |
parent | Rabbit and cooked rabbit now stackable (diff) | |
download | cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.gz cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.bz2 cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.lz cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.xz cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.zst cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MobCensus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MobCensus.cpp b/src/MobCensus.cpp index 4109aff07..1a69d8370 100644 --- a/src/MobCensus.cpp +++ b/src/MobCensus.cpp @@ -19,8 +19,8 @@ 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 - // 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 + const int ratio = 319; // This should be 256 as we are only supposed to take account from chunks that are in 17 x 17 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)) { |