summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-06-15 16:07:34 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-06-16 14:25:15 -0700
commita387dc5d5230af3a9d0d784b946de7fd05a14416 (patch)
tree0daa596cf87131a42c3eb9995d871b12fa12319a /src/net/tmwa/gamehandler.cpp
parent5e33e0b52940e739f07e9c0955e61fc104c2d936 (diff)
downloadmana-a387dc5d5230af3a9d0d784b946de7fd05a14416.tar.gz
mana-a387dc5d5230af3a9d0d784b946de7fd05a14416.tar.bz2
mana-a387dc5d5230af3a9d0d784b946de7fd05a14416.tar.xz
mana-a387dc5d5230af3a9d0d784b946de7fd05a14416.zip
Remove useless ping packet
The comment in game.cpp about the server waiting for this is a lie. Reviewed-by: Bertram.
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r--src/net/tmwa/gamehandler.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index 2194c77d..8ba2e200 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -49,7 +49,6 @@ GameHandler::GameHandler()
{
static const Uint16 _messages[] = {
SMSG_MAP_LOGIN_SUCCESS,
- SMSG_SERVER_PING,
SMSG_WHO_ANSWER,
SMSG_CHAR_SWITCH_RESPONSE,
SMSG_MAP_QUIT_RESPONSE,
@@ -80,11 +79,6 @@ void GameHandler::handleMessage(Net::MessageIn &msg)
mTileX = x; mTileY = y;
} break;
- case SMSG_SERVER_PING:
- // We ignore this for now
- // int tick = msg.readInt32()
- break;
-
case SMSG_WHO_ANSWER:
SERVER_NOTICE(strprintf(_("Online users: %d"), msg.readInt32()))
break;
@@ -177,12 +171,6 @@ void GameHandler::quit()
MessageOut outMsg(CMSG_CLIENT_QUIT);
}
-void GameHandler::ping(int tick)
-{
- MessageOut msg(CMSG_CLIENT_PING);
- msg.writeInt32(tick);
-}
-
void GameHandler::setMap(const std::string map)
{
mMap = map.substr(0, map.rfind("."));