summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-31 01:36:32 -0300
committershennetsind <ind@henn.et>2013-05-31 01:36:32 -0300
commite99a6a0eca78fa7c950aaa6d672e4e4c578a63d2 (patch)
tree6560063ad742810b486ca6018ce7a3b9561fbfe8 /src/map/clif.c
parent7b2a2c25488395cb3ceef3cb0e5cc632d58c9793 (diff)
downloadhercules-e99a6a0eca78fa7c950aaa6d672e4e4c578a63d2.tar.gz
hercules-e99a6a0eca78fa7c950aaa6d672e4e4c578a63d2.tar.bz2
hercules-e99a6a0eca78fa7c950aaa6d672e4e4c578a63d2.tar.xz
hercules-e99a6a0eca78fa7c950aaa6d672e4e4c578a63d2.zip
Fixed Bug #7171
Special Thanks to Beret. Further Enhanced silhouette sync. http://hercules.ws/board/tracker/issue-7171-fontcolor-error/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index eb13a9515..a0cf7a0c3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1628,8 +1628,7 @@ void clif_move(struct unit_data *ud)
WBUFPOS2(buf,6,bl->x,bl->y,ud->to_x,ud->to_y,8,8);
WBUFL(buf,12)=gettick();
clif->send(buf, packet_len(0x86), bl, AREA_WOS);
- if (disguised(bl))
- {
+ if (disguised(bl)) {
WBUFL(buf,2)=-bl->id;
clif->send(buf, packet_len(0x86), bl, SELF);
}
@@ -9884,6 +9883,8 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data* sd)
pc_disguise(sd,sd->status.class_);
if( pc_isdead(sd) )
clif_clearunit_single(-sd->bl.id, CLR_DEAD, sd->fd);
+ if( unit_is_walking(&sd->bl) )
+ clif->move(&sd->ud);
} else if ( sd->disguise == sd->status.class_ && sd->fontcolor_tid != INVALID_TIMER ) {
const struct TimerData *timer;
if( (timer = get_timer(sd->fontcolor_tid)) ) {