From 1a28393dabf4f4696bf433ddde52e7a25253c955 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Oct 2008 16:34:15 +0000 Subject: various user interface related updates --- src/core/gameconnection.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/core/gameconnection.h') diff --git a/src/core/gameconnection.h b/src/core/gameconnection.h index 95df9f3..70e3015 100644 --- a/src/core/gameconnection.h +++ b/src/core/gameconnection.h @@ -32,12 +32,12 @@ public: inline bool interactive() const { return true; } /// return the current game time - inline float time() const { return game_clientframetime; } + inline unsigned long timestamp() const { return connection_timestamp; } /*----- mutators -------------------------------------------------- */ /// run a game connection time frame - void frame(float seconds); + void frame(unsigned long timestamp); /// forward a command line to the remote server void forward(std::string const &cmdline); @@ -59,10 +59,11 @@ protected: private: bool connection_running; - static GameConnection *connection_instance; + unsigned long connection_timestamp; // server game time + unsigned long connection_netframe; // last network frame timestamp + NetConnection *connection_network; - float connection_frametime; - + static GameConnection *connection_instance; }; inline GameConnection *connection() { return GameConnection::instance(); } -- cgit v1.2.3