From edd28d17d2bda6824c7e2b445bebfc93152271cc Mon Sep 17 00:00:00 2001 From: GmOcean Date: Thu, 4 Dec 2014 15:35:29 -1000 Subject: Edited *changebase command, replaced unnecessary code with it's equivalent through pc->changelook. --- src/map/script.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2