summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-24 10:47:20 -0300
committershennetsind <ind@henn.et>2013-04-24 10:47:20 -0300
commit7ef89df2da4b688fabe6362f13c2f1583dcdf60f (patch)
tree668b661a1eb79cdd6fe6c387d8422e19c60a889b /src/map
parent9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5 (diff)
parent9437541b47da33d4e6111d5f6e1edb89c1216d4d (diff)
downloadhercules-7ef89df2da4b688fabe6362f13c2f1583dcdf60f.tar.gz
hercules-7ef89df2da4b688fabe6362f13c2f1583dcdf60f.tar.bz2
hercules-7ef89df2da4b688fabe6362f13c2f1583dcdf60f.tar.xz
hercules-7ef89df2da4b688fabe6362f13c2f1583dcdf60f.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 15421019b..952b1a20e 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -330,7 +330,7 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag)
&& wpd.path_len > 14 ) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett]
return 0;
#endif
- if( battle_config.max_walk_path < wpd.path_len )
+ if( (battle_config.max_walk_path < wpd.path_len) && (bl->type != BL_NPC) )
return 0;
if (flag&4 && DIFF_TICK(ud->canmove_tick, gettick()) > 0 &&