diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-01 12:31:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-01 12:31:19 +0300 |
commit | adb6a81c70e2665c47afd47c9545514f9979d13f (patch) | |
tree | 5d8911076dc59708e8ce8c1dc4c59b2af6a0e493 /src/net | |
parent | 8b94c92950cc5f6860d2a32a2254d99197db6c64 (diff) | |
download | manaplus-adb6a81c70e2665c47afd47c9545514f9979d13f.tar.gz manaplus-adb6a81c70e2665c47afd47c9545514f9979d13f.tar.bz2 manaplus-adb6a81c70e2665c47afd47c9545514f9979d13f.tar.xz manaplus-adb6a81c70e2665c47afd47c9545514f9979d13f.zip |
eathena: add partial support for packet SMSG_MAP_AUTH_REFUSE 0x0074.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/gamehandler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/gamehandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index 4848946ce..989aa0665 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -54,6 +54,7 @@ GameHandler::GameHandler() : SMSG_CHAR_SWITCH_RESPONSE, SMSG_MAP_QUIT_RESPONSE, SMSG_MAP_ACCOUNT_ID, + SMSG_MAP_AUTH_REFUSE, 0 }; handledMessages = _messages; @@ -90,6 +91,10 @@ void GameHandler::handleMessage(Net::MessageIn &msg) processMapAccountId(msg); break; + case SMSG_MAP_AUTH_REFUSE: + processMapAuthRefuse(msg); + break; + default: break; } @@ -214,4 +219,9 @@ void GameHandler::processServerTick(Net::MessageIn &msg) msg.readInt32("tick"); } +void GameHandler::processMapAuthRefuse(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("error"); +} } // namespace EAthena diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h index 180195186..695800407 100644 --- a/src/net/eathena/gamehandler.h +++ b/src/net/eathena/gamehandler.h @@ -62,6 +62,8 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler static void processMapLogin(Net::MessageIn &msg); static void processServerTick(Net::MessageIn &msg); + + static void processMapAuthRefuse(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index be9537e3c..1f556b81a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -61,6 +61,7 @@ #define SMSG_CHANGE_MAP_SERVER 0x0092 #define SMSG_MAP_LOGIN_SUCCESS 0x0a18 /**< Contains starting location */ +#define SMSG_MAP_AUTH_REFUSE 0x0074 #define SMSG_MAP_QUIT_RESPONSE 0x018b #define SMSG_PLAYER_STOP 0x0088 /**< Stop walking, set position */ #define SMSG_PLAYER_MOVE_TO_ATTACK 0x0139 /**< Move to within attack range */ |