summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-17 16:45:56 -0300
committershennetsind <ind@henn.et>2013-05-17 16:45:56 -0300
commit2cd97f154f781bee35f47d884af47de396a7877e (patch)
tree62d8f18c720cd4b3e51ac8084b5e40ef342af649 /src/map/pc.c
parent770c20207331dc328a34688c59ecc7636b6e59a9 (diff)
downloadhercules-2cd97f154f781bee35f47d884af47de396a7877e.tar.gz
hercules-2cd97f154f781bee35f47d884af47de396a7877e.tar.bz2
hercules-2cd97f154f781bee35f47d884af47de396a7877e.tar.xz
hercules-2cd97f154f781bee35f47d884af47de396a7877e.zip
Fixed Bug #7171 Item #2
http://hercules.ws/board/tracker/issue-7171-fontcolor-error/ Special Thanks to Beret~! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 644a296cf..55ce993b4 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1642,8 +1642,12 @@ int pc_disguise(struct map_session_data *sd, int class_) {
}
if (sd->bl.prev != NULL) {
- pc_stop_walking(sd, 0);
- clif->clearunit_area(&sd->bl, CLR_OUTSIGHT);
+ if( class_ == -1 && sd->disguise == sd->status.class_ ) {
+ clif->clearunit_single(-sd->bl.id,CLR_OUTSIGHT,sd->fd);
+ } else if ( class_ != sd->status.class_ ) {
+ pc_stop_walking(sd, 0);
+ clif->clearunit_area(&sd->bl, CLR_OUTSIGHT);
+ }
}
if (class_ == -1) {