summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-16 06:31:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-16 06:31:11 +0000
commit98c8a2359e1fa54ab0826bb626b15d69a48a1258 (patch)
treedeb022352f3bc07bc44ed5b01602805952fbb27e
parent97964909eafdcd2c126c4f36cdb0e612210ab04c (diff)
downloadhercules-98c8a2359e1fa54ab0826bb626b15d69a48a1258.tar.gz
hercules-98c8a2359e1fa54ab0826bb626b15d69a48a1258.tar.bz2
hercules-98c8a2359e1fa54ab0826bb626b15d69a48a1258.tar.xz
hercules-98c8a2359e1fa54ab0826bb626b15d69a48a1258.zip
- Cleared ud->target on remove-map, it should fix the phantom mob sprite issue.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6102 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/unit.c10
2 files changed, 9 insertions, 3 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 3d151790a..5105fc5ea 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/16
+ * Cleared ud->target on remove-map, it should fix the phantom mob sprite
+ issue. [Skotlex]
* Temperory fixed compiler warnings/errors. Please compile before commiting.
[Lance]
* Added pcre3.dll, zlib1.dll and libmysql.dll. DO NOT DELETE THEM.
diff --git a/src/map/unit.c b/src/map/unit.c
index a24cfc723..81b6f5af7 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1446,9 +1446,13 @@ int unit_remove_map(struct block_list *bl, int clrtype) {
map_freeblock_lock();
- unit_stop_walking(bl,0); // 歩行中断
- unit_stop_attack(bl); // 攻撃中断
- unit_skillcastcancel(bl,0); // 詠唱中断
+ ud->target = 0; //Unlock walk/attack target.
+ if (ud->walktimer != -1)
+ unit_stop_walking(bl,0);
+ if (ud->attacktimer != -1)
+ unit_stop_attack(bl);
+ if (ud->skilltimer != -1)
+ unit_skillcastcancel(bl,0);
clif_clearchar_area(bl,clrtype);
if (clrtype == 1) //Death. Remove all status changes.