summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 22:07:15 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 22:07:15 +0000
commit1bf878b4c845d29f13a370b0aa3e18f434b57bb5 (patch)
tree6b3bab49a1d4196c21eabe6bcac40634cfd8a7a9 /src/map/status.c
parent5d51ba8e8b84af11603b0c9c87b6203618604df0 (diff)
downloadhercules-1bf878b4c845d29f13a370b0aa3e18f434b57bb5.tar.gz
hercules-1bf878b4c845d29f13a370b0aa3e18f434b57bb5.tar.bz2
hercules-1bf878b4c845d29f13a370b0aa3e18f434b57bb5.tar.xz
hercules-1bf878b4c845d29f13a370b0aa3e18f434b57bb5.zip
- status_setviewdata will set your option accordingly when the previous/new view-class is wedding or xmas suit.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6437 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index df12ad208..f77f2a917 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3330,6 +3330,14 @@ void status_set_viewdata(struct block_list *bl, int class_)
class_ = JOB_BABY_CRUSADER2;
break;
}
+ if (sd->vd.class_ == JOB_WEDDING)
+ sd->sc.option&=~OPTION_WEDDING;
+ if (sd->vd.class_ == JOB_XMAS)
+ sd->sc.option&=~OPTION_XMAS;
+ if (class_ == JOB_WEDDING)
+ sd->sc.option|=OPTION_WEDDING;
+ if (class_ == JOB_XMAS)
+ sd->sc.option|=OPTION_XMAS;
sd->vd.class_ = class_;
clif_get_weapon_view(sd, &sd->vd.weapon, &sd->vd.shield);
sd->vd.head_top = sd->status.head_top;