]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
host: Add "restless" variable to host_t. True means don't sleep (timedemo, etc)
[xonotic/darkplaces.git] / cl_demo.c
index 56c301b38a6c3a4f4f184f6751ea9466b5608c05..b8445419514a6fcaab6394828c46f86319edde8a 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -499,7 +499,7 @@ static void CL_FinishTimeDemo (void)
        static int benchmark_runs = 0;
        char vabuf[1024];
 
-       cls.timedemo = false;
+       cls.timedemo = host.restless = false;
 
        frames = cls.td_frames;
        time = host.realtime - cls.td_starttime;
@@ -614,7 +614,7 @@ void CL_TimeDemo_f(cmd_state_t *cmd)
        key_consoleactive = 0;
        scr_con_current = 0;
 
-       cls.timedemo = true;
+       cls.timedemo = host.restless = true;
        cls.td_frames = -2;             // skip the first frame
        cls.demonum = -1;               // stop demo loop
 }