summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-27 13:40:15 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-27 13:40:15 +0000
commit4d51983e59c4d4008c7ed83380588959be7fad0c (patch)
tree4a88e445b1d4a7aa71786015af2d5cbf261a647a
parent78d5126daf93ed401807f79c3f7fab27a06b0e3e (diff)
downloadhercules-4d51983e59c4d4008c7ed83380588959be7fad0c.tar.gz
hercules-4d51983e59c4d4008c7ed83380588959be7fad0c.tar.bz2
hercules-4d51983e59c4d4008c7ed83380588959be7fad0c.tar.xz
hercules-4d51983e59c4d4008c7ed83380588959be7fad0c.zip
- Added the missing clif_* calls to make changebase's view-class change update on the client.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6312 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/script.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index edff4ae8f..1d1e470f3 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/27
+ * Added the missing clif_* calls to make changebase's view-class change
+ update on the client. [Skotlex]
* Added battle config hide_woe_damage which hides damage on woe maps
packet-wise (battle/client.conf). [Skotlex]
* Fixed base-level up @ command giving stat points instead of taking them
diff --git a/src/map/script.c b/src/map/script.c
index 40cb81e93..e5994c0e3 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6346,8 +6346,12 @@ int buildin_changebase(struct script_state *st)
return 0;
}
- if(!sd->disguise && vclass != sd->vd.class_)
+ if(!sd->disguise && vclass != sd->vd.class_) {
status_set_viewdata(&sd->bl, vclass);
+ clif_changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
+ if (sd->vd.cloth_color)
+ clif_changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
+ }
return 0;
}