X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=host.h;h=61182b5242c1140449824f6488854c03f3c4a780;hb=3a9bae6363ee109af0bc7877e53ea747fc1846e0;hp=26465423839b5523830ae599f25370180699f1c6;hpb=0706fdfa8e33548670e59234409eac2c51849631;p=xonotic%2Fdarkplaces.git diff --git a/host.h b/host.h index 26465423..61182b52 100644 --- a/host.h +++ b/host.h @@ -5,6 +5,16 @@ #include "qtypes.h" #include "qdefs.h" #include "cmd.h" +#include "cvar.h" + +extern cvar_t developer; +extern cvar_t developer_entityparsing; +extern cvar_t developer_extra; +extern cvar_t developer_insane; +extern cvar_t developer_loadfile; +extern cvar_t developer_loading; +extern cvar_t host_isclient; +extern cvar_t sessionid; struct cmd_state_s; @@ -20,10 +30,10 @@ typedef struct host_static_s { jmp_buf abortframe; int state; - int framecount; // incremented every frame, never reset (checked by Host_Error and Host_SaveConfig_f) + unsigned int framecount; // incremented every frame, never reset (checked by Host_Error and Host_SaveConfig_f) double realtime; // the accumulated mainloop time since application started (with filtering), without any slowmo or clamping double dirtytime; // the main loop wall time for this frame, equal to Sys_DirtyTime() at the start of this host frame - double sleeptime; // time spent sleeping overall + double sleeptime; // time spent sleeping after the last frame qbool restless; // don't sleep qbool paused; // global paused state, pauses both client and server cmd_buf_t *cbuf;