summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-02 02:16:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:55 +0300
commit6911831887b32d1aded3f3ca40b9f6f6c2c2b586 (patch)
treef715ba7ed3339588fd769d37a8026f6e30b1fbc4
parent315367ce060371d8e2fec2d9f4894165dc238088 (diff)
downloadmanaverse-6911831887b32d1aded3f3ca40b9f6f6c2c2b586.tar.gz
manaverse-6911831887b32d1aded3f3ca40b9f6f6c2c2b586.tar.bz2
manaverse-6911831887b32d1aded3f3ca40b9f6f6c2c2b586.tar.xz
manaverse-6911831887b32d1aded3f3ca40b9f6f6c2c2b586.zip
eathena: handle packet SMSG_SERVER_PING 0x007f.
-rw-r--r--src/net/eathena/gamehandler.cpp6
-rw-r--r--src/net/eathena/gamehandler.h2
2 files changed, 8 insertions, 0 deletions
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
diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h
index c6b222f0c..85314d117 100644
--- a/src/net/eathena/gamehandler.h
+++ b/src/net/eathena/gamehandler.h
@@ -60,6 +60,8 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler
protected:
void processMapLogin(Net::MessageIn &msg) const;
+
+ void processServerTick(Net::MessageIn &msg) const;
};
} // namespace EAthena