summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-03 19:46:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-03 19:46:43 +0000
commit60c165d6caa0ae9f93240f17db02580d30281caa (patch)
treedfb04f4cb47bd549f4276ee6ee776a3c45d4b142 /src/map/script.c
parentb6cb7738945e8655a4bd94b5f37615058d068638 (diff)
downloadhercules-60c165d6caa0ae9f93240f17db02580d30281caa.tar.gz
hercules-60c165d6caa0ae9f93240f17db02580d30281caa.tar.bz2
hercules-60c165d6caa0ae9f93240f17db02580d30281caa.tar.xz
hercules-60c165d6caa0ae9f93240f17db02580d30281caa.zip
- Removed sd->sex since it's redundant (we can always use sd->status.sex)
- If somehow a player logs out and it's saved with 0 hp, on login his state will be set to dead as well so he can respawn (otherwise that leads to a stuck char) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9398 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index b3b559312..420c905b5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7968,12 +7968,10 @@ int buildin_changesex(struct script_state *st) {
if (sd->status.sex == 0) {
sd->status.sex = 1;
- sd->sex = 1;
if ((sd->class_&MAPID_UPPERMASK) == MAPID_BARDDANCER)
sd->status.class_ -= 1;
} else if (sd->status.sex == 1) {
sd->status.sex = 0;
- sd->sex = 0;
if ((sd->class_&MAPID_UPPERMASK) == MAPID_BARDDANCER)
sd->status.class_ += 1;
}