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/char/char.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/char/char.cpp')
-rw-r--r-- | src/char/char.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp index a9b6834..ed9e369 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -1223,28 +1223,6 @@ void parse_tologin(Session *ls) break; } - case 0x2721: // gm reply - { - Packet_Fixed<0x2721> fixed; - rv = recv_fpacket<0x2721, 10>(ls, fixed); - if (rv != RecvResult::Complete) - break; - - { - AccountId acc = fixed.account_id; - GmLevel gml = fixed.gm_level; - - Packet_Fixed<0x2b0b> fixed_2b; - fixed_2b.account_id = acc; - fixed_2b.gm_level = gml; - for (Session *ss : iter_map_sessions()) - { - send_fpacket<0x2b0b, 10>(ss, fixed_2b); - } - } - break; - } - case 0x2723: // changesex reply (modified by [Yor]) { Packet_Fixed<0x2723> fixed; @@ -1857,33 +1835,6 @@ void parse_frommap(Session *ms) break; } - // it is a request to become GM - case 0x2b0a: - { - Packet_Head<0x2b0a> head; - AString repeat; - rv = recv_vpacket<0x2b0a, 8, 1>(ms, head, repeat); - if (rv != RecvResult::Complete) - break; - - AccountId account_id = head.account_id; - if (login_session) - { // don't send request if no login-server - Packet_Head<0x2720> head_20; - head_20.account_id = account_id; - AString& repeat_20 = repeat; - send_vpacket<0x2720, 8, 1>(login_session, head_20, repeat_20); - } - else - { - Packet_Fixed<0x2b0b> fixed_0b; - fixed_0b.account_id = account_id; - fixed_0b.gm_level = GmLevel(); - send_fpacket<0x2b0b, 10>(ms, fixed_0b); - } - break; - } - // Map server send information to change an email of an account -> login-server case 0x2b0c: { |