summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-12 02:55:39 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-12 02:55:39 +0000
commit1181f3ea7d249ef2e1d6571e803940a95d03ffa0 (patch)
tree497f175d88f4e28bbfdab33704240863cbb84fd2 /src/map/script.c
parent0fff381fcb3cf402f579b4dd62d15f3e6323f014 (diff)
downloadhercules-1181f3ea7d249ef2e1d6571e803940a95d03ffa0.tar.gz
hercules-1181f3ea7d249ef2e1d6571e803940a95d03ffa0.tar.bz2
hercules-1181f3ea7d249ef2e1d6571e803940a95d03ffa0.tar.xz
hercules-1181f3ea7d249ef2e1d6571e803940a95d03ffa0.zip
- Added special_state changebase to identify when a character has a special-view associated with some equipment to correctly revert the look when you take off said equipment (fixes tuxedo/wedding dress when you use modify_wedding_display: yes)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6002 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 706408af4..66e77d9c8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6335,9 +6335,10 @@ int buildin_changebase(struct script_state *st)
return 0;
}
- //If you are already using a special view (disguises?) prevent overriding it. [Skotlex]
- if (sd->vd.class_ == sd->status.class_)
+ if(!sd->disguise && !sd->special_state.changebase) {
status_set_viewdata(&sd->bl, vclass);
+ sd->special_state.changebase =1; //Character on suit.
+ }
return 0;
}