summaryrefslogtreecommitdiff
path: root/src/net/ea/gamehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-02 18:09:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commitc8002e43c3fd32152ae5b26e6568d35c2861b6fd (patch)
tree7c51a4f312b1a15ac68f75d1baa45f80375b5116 /src/net/ea/gamehandler.cpp
parent148bafe5950332613068f60543e5a1833e661587 (diff)
downloadmanaplus-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.tar.gz
manaplus-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.tar.bz2
manaplus-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.tar.xz
manaplus-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.zip
add packet comments in gamehandler.
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r--src/net/ea/gamehandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index cce62c1af..e8e114c30 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -60,18 +60,19 @@ void GameHandler::setMap(const std::string &map)
void GameHandler::processWhoAnswer(Net::MessageIn &msg) const
{
- NotifyManager::notify(NotifyTypes::ONLINE_USERS, msg.readInt32());
+ NotifyManager::notify(NotifyTypes::ONLINE_USERS,
+ msg.readInt32("users count"));
}
void GameHandler::processCharSwitchResponse(Net::MessageIn &msg) const
{
- if (msg.readUInt8())
+ if (msg.readUInt8("response"))
client->setState(STATE_SWITCH_CHARACTER);
}
void GameHandler::processMapQuitResponse(Net::MessageIn &msg) const
{
- if (msg.readUInt8())
+ if (msg.readUInt8("response"))
{
new OkDialog(_("Game"),
// TRANSLATORS: error message