From 8700635293ff1d39266f0c1a8a77d2d28ba4a241 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Oct 2015 02:33:08 +0300 Subject: Allow read "walkType" attributes from xml for all being types. --- src/resources/db/homunculusdb.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/resources/db/homunculusdb.cpp') diff --git a/src/resources/db/homunculusdb.cpp b/src/resources/db/homunculusdb.cpp index 4526228e4..1b5e1650b 100644 --- a/src/resources/db/homunculusdb.cpp +++ b/src/resources/db/homunculusdb.cpp @@ -106,21 +106,6 @@ void HomunculusDB::loadXmlFile(const std::string &fileName) currentInfo->setColorsList(XML::getProperty(homunculusNode, "colors", "")); - unsigned char block = 0; - std::string walkStr = XML::getProperty( - homunculusNode, "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( - BlockMask::WALL | block)); - if (currentInfo->getMaxHP()) currentInfo->setStaticMaxHP(true); -- cgit v1.2.3-70-g09d2