From bbedfd67468dc5105169fc114a54d30ae1a36f23 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 7 Sep 2007 07:31:58 +0000 Subject: - Added support for the new party invite/reply packets from the latest client version. - Cleared up some TODO's - Added auto-rejecting party/guild invites when the target is disconnected from the server. - Added a correction in the walking code to abort it when map_moveblock cancels the player's walking (by warping/knocking back),the default code would fail because unit_stopwalking would do nothing since the walk timer was already -1 in that moment. - Corrected mob_randomwalk to use unsigned int for the tick variable. - Changed the default @Main format to prevent crashes in the newer clients. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11134 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 05175a991..dc57dfd38 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -156,6 +156,9 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data) map_moveblock(bl, x, y, tick); ud->walk_count++; //walked cell counter, to be used for walk-triggered skills. [Skotlex] + 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; map_foreachinmovearea(clif_insight, bl, AREA_SIZE, -dx, -dy, sd?BL_ALL:BL_PC, bl); -- cgit v1.2.3-60-g2f50