summaryrefslogtreecommitdiff
path: root/src/map/clif.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/clif.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/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 8321368c0..1f3dc4373 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -780,7 +780,7 @@ void clif_get_weapon_view(TBL_PC* sd, short *rhand, short *lhand)
#if PACKETVER > 3
struct item_data *id;
#endif
- if (sd->vd.class_ == JOB_XMAS || sd->vd.class_ == JOB_WEDDING)
+ if (sd->sc.option&(OPTION_XMAS|OPTION_WEDDING))
{
*rhand = *lhand = 0;
return;
@@ -2682,7 +2682,6 @@ int clif_changelook(struct block_list *bl,int type,int val)
unsigned char buf[32];
struct map_session_data *sd = NULL;
struct view_data *vd;
- nullpo_retr(0, bl);
vd = status_get_viewdata(bl);
nullpo_retr(0, vd);