diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-13 00:32:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-13 00:32:49 +0300 |
commit | 5b49e94e000d31299e9e97e339e7ad273cdfa032 (patch) | |
tree | b54bca65ee3ec8147c8bd67919d91c0fdd3e110a /src/emap/clif.c | |
parent | ec69d4fd5c6ec519cb7a04ba74182cbfeceb9cf9 (diff) | |
download | evol-hercules-5b49e94e000d31299e9e97e339e7ad273cdfa032.tar.gz evol-hercules-5b49e94e000d31299e9e97e339e7ad273cdfa032.tar.bz2 evol-hercules-5b49e94e000d31299e9e97e339e7ad273cdfa032.tar.xz evol-hercules-5b49e94e000d31299e9e97e339e7ad273cdfa032.zip |
Remove first moving tile if being already moving.
This fix random one tile wrong moving.
Diffstat (limited to 'src/emap/clif.c')
-rw-r--r-- | src/emap/clif.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c index 91e7260..4eec6a6 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -13,6 +13,7 @@ #include "common/socket.h" #include "common/strlib.h" #include "common/cbasetypes.h" +#include "common/timer.h" #include "map/guild.h" #include "map/mob.h" #include "map/npc.h" @@ -434,14 +435,19 @@ void eclif_set_unit_walking(struct block_list* bl, TBL_PC *tsd, { TBL_PC *sd = BL_CAST(BL_PC, ud->bl); if (!sd || !pc_isinvisible(sd)) - send_advmoving(ud, tsd ? &tsd->bl : bl, *target); + { + if (ud->walktimer != INVALID_TIMER) + send_advmoving(ud, true, tsd ? &tsd->bl : bl, *target); + else + send_advmoving(ud, false, tsd ? &tsd->bl : bl, *target); + } } void eclif_move(struct unit_data *ud) { TBL_PC *sd = BL_CAST(BL_PC, ud->bl); if (!sd || !pc_isinvisible(sd)) - send_advmoving(ud, ud->bl, AREA_WOS); + send_advmoving(ud, false, ud->bl, AREA_WOS); } void eclif_parse_LoadEndAck_pre(int *fdPtr __attribute__ ((unused)), |