diff options
author | mekolat <mekolat@gmail.com> | 2015-04-16 18:50:36 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2015-04-20 22:45:26 -0400 |
commit | 920e18c1b959780bbcea5d289c1c766239449776 (patch) | |
tree | 8c3abd4e7426e6eda48860d0746ebf51acdf7549 /src/map | |
parent | 056aef958fb762526ba119379d46d5c2f1dd200c (diff) | |
download | tmwa-920e18c1b959780bbcea5d289c1c766239449776.tar.gz tmwa-920e18c1b959780bbcea5d289c1c766239449776.tar.bz2 tmwa-920e18c1b959780bbcea5d289c1c766239449776.tar.xz tmwa-920e18c1b959780bbcea5d289c1c766239449776.zip |
deprecate builtin changesex
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.cpp | 3 | ||||
-rw-r--r-- | src/map/script-fun.cpp | 15 |
2 files changed, 1 insertions, 17 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 1e840ea..60f8da7 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3520,8 +3520,7 @@ int pc_setparam(dumb_ptr<map_session_data> sd, SP type, int val) } break; case SP::SEX: - // this is a really bad idea - sd->sex = static_cast<SEX>(val); + chrif_char_ask_name(AccountId(), sd->status_key.name, 5, HumanTimeDiff()); break; case SP::WEIGHT: sd->weight = val; diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 3b814aa..65f8d2b 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -1987,20 +1987,6 @@ void builtin_resetstatus(ScriptState *st) } /*========================================== - * 性別変換 - *------------------------------------------ - */ -static -void builtin_changesex(ScriptState *st) -{ - dumb_ptr<map_session_data> sd = nullptr; - sd = script_rid2sd(st); - - chrif_char_ask_name(AccountId(), sd->status_key.name, 5, HumanTimeDiff()); // type: 5 - changesex - chrif_save(sd); -} - -/*========================================== * RIDのアタッチ *------------------------------------------ */ @@ -3167,7 +3153,6 @@ BuiltinFunction builtin_functions[] = BUILTIN(sc_check, "i"_s, 'i'), BUILTIN(debugmes, "s"_s, '\0'), BUILTIN(resetstatus, ""_s, '\0'), - BUILTIN(changesex, ""_s, '\0'), BUILTIN(attachrid, "i"_s, 'i'), BUILTIN(detachrid, ""_s, '\0'), BUILTIN(isloggedin, "i"_s, 'i'), |