From 038174e232c03519474f86e5738cecac34bbdee3 Mon Sep 17 00:00:00 2001 From: Matheus Macabu Date: Mon, 22 Apr 2013 22:23:14 -0300 Subject: Also fixed a behavior of npcwalkto, which was capped by walkpath limit. Signed-off-by: Matheus Macabu --- src/map/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/unit.c') 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 && -- cgit v1.2.3-60-g2f50