X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=server.h;h=1620466a07fc4ad32cc03562a4e38c8aaee7c3ed;hb=refs%2Fheads%2Fbones_was_here%2Fnet_s4;hp=4f643c8250c1733ed17a334034e3958771bed3e6;hpb=9a17acf75b06cd2d7c8d25f30afd2f8200fddfd7;p=xonotic%2Fdarkplaces.git diff --git a/server.h b/server.h index 4f643c82..1620466a 100644 --- a/server.h +++ b/server.h @@ -179,9 +179,6 @@ typedef struct csqcentityframedb_s int sendflags[NUM_CSQCENTITIES_PER_FRAME]; } csqcentityframedb_t; -// if defined this does ping smoothing, otherwise it does not -//#define NUM_PING_TIMES 16 - #define NUM_SPAWN_PARMS 16 typedef struct client_s @@ -225,11 +222,6 @@ 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 /// LadyHavoc: can be used for prediction or whatever... float ping; @@ -429,6 +421,7 @@ extern cvar_t sv_clmovement_enable; extern cvar_t sv_clmovement_minping; extern cvar_t sv_clmovement_minping_disabletime; extern cvar_t sv_clmovement_inputtimeout; +extern cvar_t sv_clmovement_inputtimeout_strict; extern cvar_t sv_clmovement_maxnetfps; extern cvar_t sv_cullentities_nevercullbmodels; extern cvar_t sv_cullentities_pvs; @@ -515,7 +508,7 @@ void SV_Init (void); double SV_Frame(double time); void SV_Shutdown(void); -int SV_IsLocalGame(void); +int SV_IsLocalServer(void); void SV_StartParticle (vec3_t org, vec3_t dir, int color, int count); void SV_StartEffect (vec3_t org, int modelindex, int startframe, int framecount, int framerate); @@ -605,14 +598,13 @@ void VM_SV_MoveToGoal(prvm_prog_t *prog); void SV_ApplyClientMove (void); void SV_SaveSpawnparms (void); -qbool SV_IsLocalServer(void); void SV_SpawnServer (const char *map); void SV_CheckVelocity (prvm_edict_t *ent); void SV_SetupVM(void); -const char *Host_TimingReport(char *buf, size_t buflen); ///< for output in SV_Status_f +const char *SV_TimingReport(char *buf, size_t buflen); ///< for output in SV_Status_f int SV_GetPitchSign(prvm_prog_t *prog, prvm_edict_t *ent); void SV_GetEntityMatrix(prvm_prog_t *prog, prvm_edict_t *ent, matrix4x4_t *out, qbool viewmatrix); @@ -635,4 +627,6 @@ void SV_PreSpawn_f(cmd_state_t *cmd); void SV_Spawn_f(cmd_state_t *cmd); void SV_Begin_f(cmd_state_t *cmd); +qbool SV_VM_ConsoleCommand (const char *text); + #endif