summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-10-12 21:59:43 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-10-12 21:59:43 -0700
commit9978ce65483f3929d82e20212bf932b215f995f0 (patch)
tree38988feb5ffbfd5210904f8013ace614b5ad56b4
parentedd67db458188a76934b963e6a40f7b681f86b3d (diff)
downloadtmwa-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.cpp10
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);
}