diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-12 21:59:43 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-12 21:59:43 -0700 |
commit | 9978ce65483f3929d82e20212bf932b215f995f0 (patch) | |
tree | 38988feb5ffbfd5210904f8013ace614b5ad56b4 | |
parent | edd67db458188a76934b963e6a40f7b681f86b3d (diff) | |
download | tmwa-9978ce65483f3929d82e20212bf932b215f995f0.tar.gz tmwa-9978ce65483f3929d82e20212bf932b215f995f0.tar.bz2 tmwa-9978ce65483f3929d82e20212bf932b215f995f0.tar.xz tmwa-9978ce65483f3929d82e20212bf932b215f995f0.zip |
Actually kick the player when their sex is changed by a script
-rw-r--r-- | src/map/script.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/map/script.cpp b/src/map/script.cpp index 07a1ea1..a3aeb7b 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -3093,16 +3093,6 @@ void builtin_changesex(ScriptState *st) dumb_ptr<map_session_data> sd = NULL; sd = script_rid2sd(st); - if (sd->status.sex == SEX::FEMALE) - { - sd->status.sex = SEX::MALE; - sd->sex = SEX::MALE; - } - else if (sd->status.sex == SEX::MALE) - { - sd->status.sex = SEX::FEMALE; - sd->sex = SEX::FEMALE; - } chrif_char_ask_name(-1, sd->status.name, 5, HumanTimeDiff()); // type: 5 - changesex chrif_save(sd); } |