summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorGmOcean <hyperassassin@gmail.com>2014-12-04 15:35:29 -1000
committerGmOcean <hyperassassin@gmail.com>2014-12-04 15:35:29 -1000
commitedd28d17d2bda6824c7e2b445bebfc93152271cc (patch)
tree858c12ec00243268a75785894d43b35a4aff4aa3 /src/map/script.c
parent1a12aeed2d165f06acddfdb0ae2c49e62b6530de (diff)
downloadhercules-edd28d17d2bda6824c7e2b445bebfc93152271cc.tar.gz
hercules-edd28d17d2bda6824c7e2b445bebfc93152271cc.tar.bz2
hercules-edd28d17d2bda6824c7e2b445bebfc93152271cc.tar.xz
hercules-edd28d17d2bda6824c7e2b445bebfc93152271cc.zip
Edited *changebase command, replaced unnecessary code with it's equivalent through pc->changelook.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 3b1f1d4aa..ea1f14ac9 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10677,15 +10677,8 @@ BUILDIN(changebase) {
return true;
}
- if(sd->disguise == -1 && vclass != sd->vd.class_) {
- status->set_viewdata(&sd->bl, vclass);
- //Updated client view. Base, Weapon and Cloth Colors.
- clif->changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
- clif->changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon);
- if (sd->vd.cloth_color)
- clif->changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
- clif->skillinfoblock(sd);
- }
+ if(sd->disguise == -1 && vclass != sd->vd.class_)
+ pc->changelook(sd,LOOK_BASE,vclass); //Updated client view. Base, Weapon and Cloth Colors.
return true;
}