X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=server.h;h=c6ec424e14f83f91376b5f9d6c971aca8926180d;hb=a49bfc10adaa500e285c04d76857b96c937536b3;hp=606879b9bc14638084409f86da4ef33cefcaf36f;hpb=56561de0acdb9cf29d155992440ac3e0d32909dd;p=xonotic%2Fdarkplaces.git diff --git a/server.h b/server.h index 606879b9..c6ec424e 100644 --- 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;