summaryrefslogtreecommitdiff
path: root/src/resources/db/monsterdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/monsterdb.cpp')
-rw-r--r--src/resources/db/monsterdb.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/resources/db/monsterdb.cpp b/src/resources/db/monsterdb.cpp
index a7eda3681..c5e80e866 100644
--- a/src/resources/db/monsterdb.cpp
+++ b/src/resources/db/monsterdb.cpp
@@ -112,21 +112,6 @@ void MonsterDB::loadXmlFile(const std::string &fileName)
currentInfo->setColorsList(XML::getProperty(monsterNode,
"colors", ""));
- unsigned char block = 0;
- std::string walkStr = XML::getProperty(
- monsterNode, "walkType", "walk");
- if (walkStr == "walk")
- block = BlockMask::WATER | BlockMask::AIR;
- else if (walkStr == "fly")
- block = 0;
- else if (walkStr == "swim")
- block = BlockMask::GROUND | BlockMask::AIR;
- else if (walkStr == "walkswim" || walkStr == "swimwalk")
- block = BlockMask::AIR;
-
- currentInfo->setBlockWalkMask(static_cast<unsigned char>(
- BlockMask::WALL | block));
-
if (currentInfo->getMaxHP())
currentInfo->setStaticMaxHP(true);