diff options
author | shennetsind <ind@henn.et> | 2013-06-14 08:56:59 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-14 08:56:59 -0300 |
commit | 35dcafcc79892075bfbd5087b44116c6328cc533 (patch) | |
tree | e3f0384980e03ef7baa41ea91dddf4ed4a701962 /src/map/unit.c | |
parent | 5a942993dd12ae7d85b1633a58b0dc23f85832c2 (diff) | |
parent | 074b15c84bf9b624eee18ba31587d08d0a94ed49 (diff) | |
download | hercules-35dcafcc79892075bfbd5087b44116c6328cc533.tar.gz hercules-35dcafcc79892075bfbd5087b44116c6328cc533.tar.bz2 hercules-35dcafcc79892075bfbd5087b44116c6328cc533.tar.xz hercules-35dcafcc79892075bfbd5087b44116c6328cc533.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/unit.c')
-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) ) |