]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
host: Refactor Host_Frame; simplify control flow.
[xonotic/darkplaces.git] / client.h
index b4e8eb7a3b7df2a167045cd0b21784d5770d89ce..5335bb0a4cd958eb4fab19bdfd75fb85fcebb987 100644 (file)
--- a/client.h
+++ b/client.h
@@ -870,7 +870,12 @@ typedef struct client_state_s
        // how long it has been since the previous client frame in real time
        // (not game time, for that use cl.time - cl.oldtime)
        double realframetime;
-       
+
+       // used by cl_nettimesyncboundmode 7
+#define NUM_TS_ERRORS 32 // max 256
+       unsigned char ts_error_num;
+       float ts_error_stor[NUM_TS_ERRORS];
+
        // fade var for fading while dead
        float deathfade;
 
@@ -1041,8 +1046,8 @@ typedef struct client_state_s
        // use cl.scores[cl.playerentity-1].qw_spectator instead
        //qbool qw_spectator;
 
-       // last time an input packet was sent
-       double lastpackettime;
+       // time accumulated since an input packet was sent
+       float timesincepacket;
 
        // movement parameters for client prediction
        unsigned int moveflags;