diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-21 15:19:35 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-21 15:19:35 +0800 |
commit | ea34b8031646a351e8ddbbb829fb99684df5e6e5 (patch) | |
tree | 0c52d7b9b6040f187b7a299de6148847ca02cac5 /src/map/unit.c | |
parent | 1134e030744e67bca61f52dc97075f33932f7a38 (diff) | |
download | hercules-ea34b8031646a351e8ddbbb829fb99684df5e6e5.tar.gz hercules-ea34b8031646a351e8ddbbb829fb99684df5e6e5.tar.bz2 hercules-ea34b8031646a351e8ddbbb829fb99684df5e6e5.tar.xz hercules-ea34b8031646a351e8ddbbb829fb99684df5e6e5.zip |
Fixed Bug#8458
-http://hercules.ws/board/tracker/issue-8458-sgs-running-and-gm-hide/?gopid=24216#entry24216
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index e23eb42ac..86e5a56d7 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -685,7 +685,7 @@ bool unit_run( struct block_list *bl, struct map_session_data *sd, enum sc_type break; //if sprinting and there's a PC/Mob/NPC, block the path [Kevin] - if( map->count_oncell(bl->m, to_x+dir_x, to_y+dir_y, BL_PC|BL_MOB|BL_NPC, 0) ) + if ( map->count_oncell(bl->m, to_x + dir_x, to_y + dir_y, BL_PC | BL_MOB | BL_NPC, 0x2) ) break; to_x += dir_x; |