summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-30 07:07:51 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-30 07:07:51 +0000
commitd5815e3e829bc1303559f8649cf05bd257787cfe (patch)
tree85c00ecada7e2785365011c48d2c51b14f2cae69 /src/map
parentd157481db8a77069628b6186b9a31ea6267854ee (diff)
downloadhercules-d5815e3e829bc1303559f8649cf05bd257787cfe.tar.gz
hercules-d5815e3e829bc1303559f8649cf05bd257787cfe.tar.bz2
hercules-d5815e3e829bc1303559f8649cf05bd257787cfe.tar.xz
hercules-d5815e3e829bc1303559f8649cf05bd257787cfe.zip
- pc_setoption no longer does view_data changes while disguised (as this breaks things)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11845 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 852d06e5e..2ccab3a5a 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5823,6 +5823,9 @@ int pc_setoption(struct map_session_data *sd,int type)
else if (!(type&OPTION_SUMMER) && p_type&OPTION_SUMMER)
new_look = -1;
+ if (sd->disguise)
+ return 0; //Disguises break sprite changes
+
if (new_look < 0) { //Restore normal look.
status_set_viewdata(&sd->bl, sd->status.class_);
new_look = sd->vd.class_;