diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-15 11:41:40 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-15 11:41:40 +0000 |
commit | abfbf381c18d4c17e9594e7e3b903405c20e9f7f (patch) | |
tree | 67bdc8b45f716bd6f3a2b68433337e094b448662 /src/map/unit.c | |
parent | c0f2069689110d1df816d52e36d049d4b97a7a22 (diff) | |
download | hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.tar.gz hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.tar.bz2 hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.tar.xz hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.zip |
Cleaning/fixing the previous commits a bit
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13775 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 8fa929da8..dd24c6d16 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -159,7 +159,7 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr data) if (bl->x != x || bl->y != y || ud->walktimer != -1) return 0; //map_moveblock has altered the object beyond what we expected (moved/warped it) - ud->walktimer = 1; //FIXME: why '1'? [ultramage] + ud->walktimer = -2; // arbitrary non-INVALID_TIMER value to make the clif code send walking packets map_foreachinmovearea(clif_insight, bl, AREA_SIZE, -dx, -dy, sd?BL_ALL:BL_PC, bl); ud->walktimer = INVALID_TIMER; @@ -508,7 +508,7 @@ int unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, bool map_moveblock(bl, dst_x, dst_y, gettick()); - ud->walktimer = 1; //Enables clif_insight related packets to spawn character in moving animation. + ud->walktimer = -2; // arbitrary non-INVALID_TIMER value to make the clif code send walking packets map_foreachinmovearea(clif_insight, bl, AREA_SIZE, -dx, -dy, sd?BL_ALL:BL_PC, bl); ud->walktimer = INVALID_TIMER; @@ -814,7 +814,7 @@ int unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int } else { - unit_stop_walking(bl,6); + unit_stop_walking(bl,2|4); if(ud->target) add_timer(ud->canmove_tick+1, unit_walktobl_sub, bl->id, ud->target); } |