From 6911831887b32d1aded3f3ca40b9f6f6c2c2b586 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Sep 2014 02:16:22 +0300 Subject: eathena: handle packet SMSG_SERVER_PING 0x007f. --- src/net/eathena/gamehandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/gamehandler.cpp') diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index 1cfa5ee8c..d56977371 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -69,6 +69,7 @@ void GameHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_SERVER_PING: + processServerTick(msg); // We ignore this for now // int tick = msg.readInt32() break; @@ -200,4 +201,9 @@ void GameHandler::processMapLogin(Net::MessageIn &msg) const localPlayer->setTileCoords(x, y); } +void GameHandler::processServerTick(Net::MessageIn &msg) const +{ + msg.readInt32("tick"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2