From 60c165d6caa0ae9f93240f17db02580d30281caa Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 3 Dec 2006 19:46:43 +0000 Subject: - 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 --- src/map/script.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/map/script.c') 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; } -- cgit v1.2.3-70-g09d2