diff options
author | Matheus Macabu <mkbu95@gmail.com> | 2013-06-14 00:57:18 -0300 |
---|---|---|
committer | Euphy <euphy@rathena.org> | 2013-06-15 15:54:31 -0400 |
commit | 7cbd76aad6a556726eff25b2e3115203f4b28f98 (patch) | |
tree | 4047827c7bb19fcad2f61bcbe5f2e509b3f6c48f /src | |
parent | a17364781cbd0cd10389c39582333383d38b8613 (diff) | |
download | hercules-7cbd76aad6a556726eff25b2e3115203f4b28f98.tar.gz hercules-7cbd76aad6a556726eff25b2e3115203f4b28f98.tar.bz2 hercules-7cbd76aad6a556726eff25b2e3115203f4b28f98.tar.xz hercules-7cbd76aad6a556726eff25b2e3115203f4b28f98.zip |
Partial fix for #7339.
There is another topic on it that has to be discussed.
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 371a75ac7..7b270adc7 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -327,7 +327,8 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag) path_search(&wpd, bl->m, bl->x, bl->y, x, y, flag&1, CELL_CHKNOPASS); // Count walk path cells #ifdef OFFICIAL_WALKPATH if( !path_search_long(NULL, bl->m, bl->x, bl->y, x, y, CELL_CHKNOPASS) // Check if there is an obstacle between - && wpd.path_len > 14 ) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett] + && (wpd.path_len > 14) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett] + && (bl->type != BL_NPC) ) // If type is a NPC, please disregard. return 0; #endif if( (battle_config.max_walk_path < wpd.path_len) && (bl->type != BL_NPC) ) |