summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorKirieZ <guilherme.menaldo@outlook.com>2017-02-21 12:44:43 -0300
committerKirieZ <guilherme.menaldo@outlook.com>2017-02-21 12:44:43 -0300
commit9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7 (patch)
tree8c568d19054f6bcd649fd43ed2de8874c28cea1d /src/map/clif.c
parentfb4df10d2108dd2d8e4cd63fff5a64451d16dfcd (diff)
downloadhercules-9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7.tar.gz
hercules-9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7.tar.bz2
hercules-9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7.tar.xz
hercules-9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7.zip
Fixes disguise position de-synchronization (Fixes #1078)
Thanks @Lemongrass3110
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index c48241898..3353247fe 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1085,7 +1085,11 @@ void clif_set_unit_idle(struct block_list* bl, struct map_session_data *tsd, enu
if (clif->isdisguised(bl)) {
#if PACKETVER >= 20091103
p.objecttype = pc->db_checkid(status->get_viewdata(bl)->class) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE
+#if PACKETVER >= 20131223
+ p.AID = -bl->id;
+#else
p.GID = -bl->id;
+#endif
#else
p.GID = -bl->id;
#endif
@@ -1228,7 +1232,11 @@ void clif_spawn_unit(struct block_list* bl, enum send_target target) {
clif->send(&p,sizeof(p),bl,target);
#if PACKETVER >= 20091103
p.objecttype = pc->db_checkid(status->get_viewdata(bl)->class) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE
+#if PACKETVER >= 20131223
+ p.AID = -bl->id;
+#else
p.GID = -bl->id;
+#endif
#else
p.GID = -bl->id;
#endif
@@ -1320,7 +1328,11 @@ void clif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd,
if (clif->isdisguised(bl)) {
#if PACKETVER >= 20091103
p.objecttype = pc->db_checkid(status->get_viewdata(bl)->class) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE
+#if PACKETVER >= 20131223
+ p.AID = -bl->id;
+#else
p.GID = -bl->id;
+#endif
#else
p.GID = -bl->id;
#endif