summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-15 18:56:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-15 18:56:54 +0000
commit2f2066f741111325b2510c6526b41b22dea93370 (patch)
tree3d6685374e23b0c5eaa23104b147af5300e4cf21 /src/map/status.c
parent98669fa21190be11fadfd165678812d660338873 (diff)
downloadhercules-2f2066f741111325b2510c6526b41b22dea93370.tar.gz
hercules-2f2066f741111325b2510c6526b41b22dea93370.tar.bz2
hercules-2f2066f741111325b2510c6526b41b22dea93370.tar.xz
hercules-2f2066f741111325b2510c6526b41b22dea93370.zip
- Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas options.
- Added back OPTION_XMAS, but the actual value is missing! - Corrected chrif_save so that the player is not set offline on map-change. - Added change-look support in pc_setoption when specifying OPTION_XMAS - Fixed clif_parse_RemoveOption removing all options instead of just Falcon/Cart/Peco git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7183 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7fc090dd1..7e7cadfb6 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3712,6 +3712,12 @@ void status_set_viewdata(struct block_list *bl, int class_)
{
TBL_PC* sd = (TBL_PC*)bl;
if (pcdb_checkid(class_)) {
+ if (sd->sc.option&OPTION_WEDDING)
+ class_ = JOB_WEDDING;
+ else
+ if (sd->sc.option&OPTION_XMAS)
+ class_ = JOB_XMAS;
+ else
if (sd->sc.option&OPTION_RIDING)
switch (class_)
{ //Adapt class to a Mounted one.
@@ -3734,10 +3740,6 @@ void status_set_viewdata(struct block_list *bl, int class_)
class_ = JOB_BABY_CRUSADER2;
break;
}
- if (class_ == JOB_WEDDING)
- sd->sc.option|=OPTION_WEDDING;
- else if (sd->sc.option&OPTION_WEDDING)
- sd->sc.option&=~OPTION_WEDDING; //If not going to display it, then remove the option.
sd->vd.class_ = class_;
clif_get_weapon_view(sd, &sd->vd.weapon, &sd->vd.shield);
sd->vd.head_top = sd->status.head_top;
@@ -5264,6 +5266,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
case SC_WEDDING:
sc->option |= OPTION_WEDDING;
break;
+ case SC_XMAS:
+ sc->option |= OPTION_XMAS;
+ break;
case SC_ORCISH:
sc->option |= OPTION_ORCISH;
break;
@@ -5661,6 +5666,9 @@ int status_change_end( struct block_list* bl , int type,int tid )
case SC_WEDDING:
sc->option &= ~OPTION_WEDDING;
break;
+ case SC_XMAS:
+ sc->option &= ~OPTION_XMAS;
+ break;
case SC_ORCISH:
sc->option &= ~OPTION_ORCISH;
break;