summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_game.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-02-25 20:30:16 +0100
committerPatric Stout <github@truebrain.nl>2021-02-27 00:36:14 +0100
commit53c28a8ec9845a90f0c9e1ed83a87dbb7959d14d (patch)
treeec8b01761fd3c819d4e1317c86e7da37070b1152 /src/network/core/tcp_game.h
parentdc7ba33b515c83ec0ebd9cb1789fd20294dee4ec (diff)
downloadopenttd-53c28a8ec9845a90f0c9e1ed83a87dbb7959d14d.tar.xz
Codechange: [Network] replace _realtime_tick with std::chrono
Diffstat (limited to 'src/network/core/tcp_game.h')
-rw-r--r--src/network/core/tcp_game.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/core/tcp_game.h b/src/network/core/tcp_game.h
index 9e3dcf197..95b5f8c6c 100644
--- a/src/network/core/tcp_game.h
+++ b/src/network/core/tcp_game.h
@@ -16,6 +16,7 @@
#include "tcp.h"
#include "../network_type.h"
#include "../../core/pool_type.hpp"
+#include <chrono>
/**
* Enum with all types of TCP packets.
@@ -518,7 +519,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.
+ std::chrono::steady_clock::time_point last_packet; ///< Time we received the last frame.
NetworkRecvStatus CloseConnection(bool error = true) override;