]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
removed (int) casts added by Sajt's last commit, as they are probably a slowdown...
[xonotic/darkplaces.git] / server.h
index 606879b9bc14638084409f86da4ef33cefcaf36f..3cf0fcf293150abc97754cee1487e0807d3cdb13 100644 (file)
--- a/server.h
+++ b/server.h
@@ -94,8 +94,9 @@ typedef struct
        qbyte signon_buf[NET_MAXMESSAGE];
 } server_t;
 
+// if defined this does ping smoothing, otherwise it does not
+//#define NUM_PING_TIMES 16
 
-#define NUM_PING_TIMES 16
 #define NUM_SPAWN_PARMS 16
 
 typedef struct client_s
@@ -135,9 +136,11 @@ typedef struct client_s
        // PRVM_EDICT_NUM(clientnum+1)
        prvm_edict_t *edict;
 
+#ifdef NUM_PING_TIMES
        float ping_times[NUM_PING_TIMES];
        // ping_times[num_pings%NUM_PING_TIMES]
        int num_pings;
+#endif
        // LordHavoc: can be used for prediction or whatever...
        float ping;
 
@@ -251,6 +254,7 @@ extern cvar_t sv_friction;
 extern cvar_t sv_edgefriction;
 extern cvar_t sv_stopspeed;
 extern cvar_t sv_maxspeed;
+extern cvar_t sv_maxairspeed;
 extern cvar_t sv_accelerate;
 extern cvar_t sv_idealpitchscale;
 extern cvar_t sv_aim;