Skip to content

Commit

Permalink
Merge pull request #1585 from guilherme-gm/disguise-fix
Browse files Browse the repository at this point in the history
Fixes disguise position de-synchronization
  • Loading branch information
Ridley committed Feb 24, 2017
2 parents 8200701 + 9ee8812 commit abb3bc6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/map/clif.c
Expand Up @@ -1087,7 +1087,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
Expand Down Expand Up @@ -1233,7 +1237,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
Expand Down Expand Up @@ -1328,7 +1336,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
Expand Down

0 comments on commit abb3bc6

Please sign in to comment.