From c8002e43c3fd32152ae5b26e6568d35c2861b6fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Sep 2014 18:09:38 +0300 Subject: add packet comments in gamehandler. --- src/net/ea/gamehandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/net/ea/gamehandler.cpp') 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 -- cgit v1.2.3-70-g09d2