summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-11 17:51:30 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-11 17:51:30 +0000
commitbd8cae322b556485093c35682fb4ce206fd681e5 (patch)
tree1cb4ee2cca6cd9ede91b2cd4869adfeb0a13ac4f /src/map
parentac56a9becca22b5e86f2d92ee3e49c40d3c42b81 (diff)
downloadhercules-bd8cae322b556485093c35682fb4ce206fd681e5.tar.gz
hercules-bd8cae322b556485093c35682fb4ce206fd681e5.tar.bz2
hercules-bd8cae322b556485093c35682fb4ce206fd681e5.tar.xz
hercules-bd8cae322b556485093c35682fb4ce206fd681e5.zip
- Added a clif_fixpos packet when a mob cancels walking due to using a idle/walk/chase skill.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7615 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/unit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 5497f8c2e..80c4a7260 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -198,11 +198,14 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data)
return 0;
if (md->min_chase > md->db->range2) md->min_chase--;
//Walk skills are triggered regardless of target due to the idle-walk mob state.
- //However, avoid triggering them when there's a forced stop-walk call
- //(tid == -1) or client desync problems can appear.
- if(tid != -1 && !(ud->walk_count%WALK_SKILL_INTERVAL) &&
+ //But avoid triggering on stop-walk calls.
+ if(tid != -1 &&
+ !(ud->walk_count%WALK_SKILL_INTERVAL) &&
mobskill_use(md, tick, -1))
+ {
+ clif_fixpos(bl); //Fix position as walk has been cancelled.
return 0;
+ }
}
if(tid == -1) //A directly invoked timer is from battle_stop_walking, therefore the rest is irrelevant.