diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-08 18:46:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-08 18:46:21 +0300 |
commit | 461bfb657a0300f27e3ffed55a78ce9249b54759 (patch) | |
tree | 0612c7f0c76bfec8792fbef2643de8cba5d60c0c /src/resources/db/monsterdb.cpp | |
parent | f57e4aa60a10e33ba707417c08eec9a99a796f9e (diff) | |
download | manaplus-461bfb657a0300f27e3ffed55a78ce9249b54759.tar.gz manaplus-461bfb657a0300f27e3ffed55a78ce9249b54759.tar.bz2 manaplus-461bfb657a0300f27e3ffed55a78ce9249b54759.tar.xz manaplus-461bfb657a0300f27e3ffed55a78ce9249b54759.zip |
Fix on client side walking on monster wall collision.
Diffstat (limited to 'src/resources/db/monsterdb.cpp')
-rw-r--r-- | src/resources/db/monsterdb.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/db/monsterdb.cpp b/src/resources/db/monsterdb.cpp index f4196ec08..e950072dd 100644 --- a/src/resources/db/monsterdb.cpp +++ b/src/resources/db/monsterdb.cpp @@ -22,6 +22,8 @@ #include "resources/db/monsterdb.h" +#include "enums/resources/map/blockmask.h" + #include "resources/beingcommon.h" #include "resources/beinginfo.h" @@ -101,6 +103,8 @@ void MonsterDB::loadXmlFile(const std::string &fileName, monsterNode, "name", _("unnamed"))); BeingCommon::readBasicAttributes(currentInfo, monsterNode, "attack"); + BeingCommon::readWalkingAttributes(currentInfo, monsterNode, + BlockMask::MONSTERWALL); currentInfo->setMaxHP(XML::getProperty(monsterNode, "maxHP", 0)); |