diff options
author | rubidium <rubidium@openttd.org> | 2010-11-19 12:33:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-19 12:33:19 +0000 |
commit | 6d09f4a3cbb0ebf40b568026f47220f01449857c (patch) | |
tree | 0ca0e51a2c1bcb9970f4118ef0e979574fc295bc /src/network/core/tcp_game.cpp | |
parent | 611a9f200785885a29447f4fd138220283a8dcd0 (diff) | |
download | openttd-6d09f4a3cbb0ebf40b568026f47220f01449857c.tar.xz |
(svn r21254) -Change: show a different "lag" message when a client is lagging because of connection trouble or lagging because the client is just slow
Diffstat (limited to 'src/network/core/tcp_game.cpp')
-rw-r--r-- | src/network/core/tcp_game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp index 4f4baeb6b..3cf1a468b 100644 --- a/src/network/core/tcp_game.cpp +++ b/src/network/core/tcp_game.cpp @@ -30,6 +30,7 @@ NetworkGameSocketHandler::NetworkGameSocketHandler(SOCKET s) this->sock = s; this->last_frame = _frame_counter; this->last_frame_server = _frame_counter; + this->last_packet = _realtime_tick; } /** @@ -70,6 +71,8 @@ NetworkRecvStatus NetworkGameSocketHandler::HandlePacket(Packet *p) { PacketGameType type = (PacketGameType)p->Recv_uint8(); + this->last_packet = _realtime_tick; + switch (this->HasClientQuit() ? PACKET_END : type) { GAME_COMMAND(PACKET_SERVER_FULL) GAME_COMMAND(PACKET_SERVER_BANNED) |