summaryrefslogtreecommitdiff
path: root/src/emap/map.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-12 18:16:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-12 18:16:54 +0300
commite5e70b5d5afe465f7ee9e168a1747b8984beeee0 (patch)
treeacd0fccd8119fbd1d9759aa117f06bd72786f8c5 /src/emap/map.c
parent8487d3de9cf9e1775d4cdb17a83cf48d4d732064 (diff)
downloadevol-hercules-e5e70b5d5afe465f7ee9e168a1747b8984beeee0.tar.gz
evol-hercules-e5e70b5d5afe465f7ee9e168a1747b8984beeee0.tar.bz2
evol-hercules-e5e70b5d5afe465f7ee9e168a1747b8984beeee0.tar.xz
evol-hercules-e5e70b5d5afe465f7ee9e168a1747b8984beeee0.zip
Using 'WalkMask' in monsters moving.
Diffstat (limited to 'src/emap/map.c')
-rw-r--r--src/emap/map.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emap/map.c b/src/emap/map.c
index 7723d4f..f47d929 100644
--- a/src/emap/map.c
+++ b/src/emap/map.c
@@ -22,9 +22,11 @@
#include "emap/permission.h"
#include "emap/send.h"
#include "emap/data/itemd.h"
+#include "emap/data/mobd.h"
#include "emap/data/npcd.h"
#include "emap/data/session.h"
#include "emap/struct/itemdext.h"
+#include "emap/struct/mobdext.h"
#include "emap/struct/npcdext.h"
#include "emap/struct/sessionext.h"
@@ -181,6 +183,13 @@ static int getWalkMask(const struct block_list *bl)
if (ext)
walkMask = ext->walkMask;
}
+ else if (bl->type == BL_MOB)
+ {
+ TBL_MOB *md = (TBL_MOB*)bl;
+ struct MobdExt *ext = mobd_get_by_mob(md);
+ if (ext)
+ walkMask = ext->walkMask;
+ }
return walkMask;
}