summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-01 12:31:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-01 12:31:19 +0300
commitadb6a81c70e2665c47afd47c9545514f9979d13f (patch)
tree5d8911076dc59708e8ce8c1dc4c59b2af6a0e493 /src
parent8b94c92950cc5f6860d2a32a2254d99197db6c64 (diff)
downloadmanaverse-adb6a81c70e2665c47afd47c9545514f9979d13f.tar.gz
manaverse-adb6a81c70e2665c47afd47c9545514f9979d13f.tar.bz2
manaverse-adb6a81c70e2665c47afd47c9545514f9979d13f.tar.xz
manaverse-adb6a81c70e2665c47afd47c9545514f9979d13f.zip
eathena: add partial support for packet SMSG_MAP_AUTH_REFUSE 0x0074.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/gamehandler.cpp10
-rw-r--r--src/net/eathena/gamehandler.h2
-rw-r--r--src/net/eathena/protocol.h1
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 */