summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_game.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-19 12:33:19 +0000
committerrubidium <rubidium@openttd.org>2010-11-19 12:33:19 +0000
commit6d09f4a3cbb0ebf40b568026f47220f01449857c (patch)
tree0ca0e51a2c1bcb9970f4118ef0e979574fc295bc /src/network/core/tcp_game.h
parent611a9f200785885a29447f4fd138220283a8dcd0 (diff)
downloadopenttd-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.h')
-rw-r--r--src/network/core/tcp_game.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/core/tcp_game.h b/src/network/core/tcp_game.h
index a2e0226be..b4a6999cd 100644
--- a/src/network/core/tcp_game.h
+++ b/src/network/core/tcp_game.h
@@ -473,6 +473,7 @@ public:
uint32 last_frame; ///< Last frame we have executed
uint32 last_frame_server; ///< Last frame the server has executed
CommandQueue incoming_queue; ///< The command-queue awaiting handling
+ uint last_packet; ///< Time we received the last frame.
NetworkRecvStatus CloseConnection(bool error = true);
virtual NetworkRecvStatus CloseConnection(NetworkRecvStatus status) = 0;