]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
host: Add "restless" variable to host_t. True means don't sleep (timedemo, etc)
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 3812d49838c98272c92f3810b420bbc26964ecbb..b134a9234bd1c86a6e1bce5ee08c2c4fc9e32063 100644 (file)
--- a/host.c
+++ b/host.c
@@ -407,6 +407,8 @@ void Host_Main(void)
        char vabuf[1024];
        qboolean playing;
 
+       host.restless = false;
+
        Host_Init();
 
        host.realtime = 0;
@@ -518,7 +520,7 @@ void Host_Main(void)
                else
                        wait = max(cl_timer, sv_timer) * -1000000.0;
 
-               if (!cls.timedemo && wait >= 1)
+               if (!host.restless && wait >= 1)
                {
                        double time0, delta;