diff options
author | madmaxoft <github@xoft.cz> | 2013-10-20 10:23:30 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-20 10:23:30 +0200 |
commit | 34928378b8e3464326de38787bfada9adc0bfb11 (patch) | |
tree | f057fec656fcead894b49315b948c078c2ba07d7 /source/MobSpawner.cpp | |
parent | Merge branch 'htmlescape'. (diff) | |
download | cuberite-34928378b8e3464326de38787bfada9adc0bfb11.tar cuberite-34928378b8e3464326de38787bfada9adc0bfb11.tar.gz cuberite-34928378b8e3464326de38787bfada9adc0bfb11.tar.bz2 cuberite-34928378b8e3464326de38787bfada9adc0bfb11.tar.lz cuberite-34928378b8e3464326de38787bfada9adc0bfb11.tar.xz cuberite-34928378b8e3464326de38787bfada9adc0bfb11.tar.zst cuberite-34928378b8e3464326de38787bfada9adc0bfb11.zip |
Diffstat (limited to 'source/MobSpawner.cpp')
-rw-r--r-- | source/MobSpawner.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/MobSpawner.cpp b/source/MobSpawner.cpp index 9bff87533..bdeb423c2 100644 --- a/source/MobSpawner.cpp +++ b/source/MobSpawner.cpp @@ -47,6 +47,9 @@ cMobSpawner::tMobTypes cMobSpawner::initMobTypesBeforeCx11() } + + + cMobSpawner::cMobSpawner(cMonster::eFamily a_MonsterFamily,const std::set<cMonster::eType>& a_AllowedTypes) : m_MonsterFamily(a_MonsterFamily), m_NewPack(true), @@ -54,13 +57,17 @@ cMobSpawner::cMobSpawner(cMonster::eFamily a_MonsterFamily,const std::set<cMonst { for (std::set<cMonster::eType>::const_iterator itr = a_AllowedTypes.begin(); itr != a_AllowedTypes.end(); itr++) { - if (cMobTypesManager::getFamilyFromType(*itr) == a_MonsterFamily) + if (cMobTypesManager::FamilyFromType(*itr) == a_MonsterFamily) { m_AllowedTypes.insert(*itr); } } } + + + + bool cMobSpawner::CheckPackCenter(BLOCKTYPE a_BlockType) { // Packs of non-water mobs can only be centered on an air block |