summaryrefslogtreecommitdiff
path: root/src/net/eathena/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/eathena/gamehandler.cpp
parent148bafe5950332613068f60543e5a1833e661587 (diff)
downloadmv-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.tar.gz
mv-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.tar.bz2
mv-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.tar.xz
mv-c8002e43c3fd32152ae5b26e6568d35c2861b6fd.zip
add packet comments in gamehandler.
Diffstat (limited to 'src/net/eathena/gamehandler.cpp')
-rw-r--r--src/net/eathena/gamehandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index d56977371..1cb6ef40b 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -108,7 +108,7 @@ void GameHandler::connect()
mNetwork->connect(mapServer);
const Token &token =
- static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
+ static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
if (client->getState() == STATE_CONNECT_GAME)
@@ -164,7 +164,7 @@ void GameHandler::quit() const
void GameHandler::ping(const int tick) const
{
MessageOut msg(CMSG_CLIENT_PING);
- msg.writeInt32(tick);
+ msg.writeInt32(tick, "tick");
}
void GameHandler::disconnect2() const
@@ -182,7 +182,7 @@ void GameHandler::processMapLogin(Net::MessageIn &msg) const
unsigned char direction;
uint16_t x, y;
msg.readInt32("start time");
- msg.readCoordinates(x, y, direction);
+ msg.readCoordinates(x, y, direction, "position");
msg.readInt8("x size");
msg.readInt8("y size");
logger->log("Protocol: Player start position: "