diff options
author | Wushin <pasekei@gmail.com> | 2015-04-29 22:21:35 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-04-29 22:21:35 -0500 |
commit | bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c (patch) | |
tree | 7e192fa66bc0d544d353db9964e8688aebf3883b /src/map/chrif.cpp | |
parent | 7da6873424307a6097a86772dd4994eccab041f3 (diff) | |
parent | 533cb165e0a9b4031f027c1ee193da52f962bdd2 (diff) | |
download | tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.tar.gz tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.tar.bz2 tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.tar.xz tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.zip |
Merge pull request #62 from mekolat/gm-atcommand
remove @gm atcommand
Diffstat (limited to 'src/map/chrif.cpp')
-rw-r--r-- | src/map/chrif.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp index bf4ae4e..24369ed 100644 --- a/src/map/chrif.cpp +++ b/src/map/chrif.cpp @@ -345,23 +345,6 @@ int chrif_charselectreq(dumb_ptr<map_session_data> sd) } /*========================================== - * GMに変化要求 - *------------------------------------------ - */ -void chrif_changegm(AccountId id, ZString pass) -{ - if (!char_session) - return; - - if (battle_config.etc_log) - PRINTF("chrif_changegm: account: %d, password: '%s'.\n"_fmt, id, pass); - - Packet_Head<0x2b0a> head_0a; - head_0a.account_id = id; - send_vpacket<0x2b0a, 8, 1>(char_session, head_0a, pass); -} - -/*========================================== * Change Email *------------------------------------------ */ @@ -559,30 +542,6 @@ int chrif_char_ask_name_answer(Session *, const Packet_Fixed<0x2b0f>& fixed) } /*========================================== - * End of GM change(@GM) (modified by Yor) - *------------------------------------------ - */ -static -void chrif_changedgm(Session *, const Packet_Fixed<0x2b0b>& fixed) -{ - AccountId acc = fixed.account_id; - GmLevel level = fixed.gm_level; - - dumb_ptr<map_session_data> sd = map_id2sd(account_to_block(acc)); - - if (battle_config.etc_log) - PRINTF("chrif_changedgm: account: %d, GM level 0 -> %d.\n"_fmt, acc, - level); - if (sd != nullptr) - { - if (level) - clif_displaymessage(sd->sess, "GM modification success."_s); - else - clif_displaymessage(sd->sess, "Failure of GM modification."_s); - } -} - -/*========================================== * 性別変化終了 (modified by Yor) *------------------------------------------ */ @@ -973,16 +932,6 @@ void chrif_parse(Session *s) chrif_changemapserverack(s, fixed); break; } - case 0x2b0b: - { - Packet_Fixed<0x2b0b> fixed; - rv = recv_fpacket<0x2b0b, 10>(s, fixed); - if (rv != RecvResult::Complete) - break; - - chrif_changedgm(s, fixed); - break; - } case 0x2b0d: { Packet_Fixed<0x2b0d> fixed; |