]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't apply host_sleep when in a timedemo
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Apr 2009 07:52:18 +0000 (07:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Apr 2009 07:52:18 +0000 (07:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8849 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 90282634e552f389fae6db66e7e321795864c2e7..c8521f2753dd8300bb9e44c05d0aca2f44612d95 100644 (file)
--- a/host.c
+++ b/host.c
@@ -915,7 +915,7 @@ void Host_Main(void)
                                                        pass1+pass2+pass3, pass1, pass2, pass3);
                        }
                        wait = bound(0, host_sleep.value * 1000, 100000);
-                       if (wait >= 1)
+                       if (!cls.timedemo && wait >= 1)
                                Sys_Sleep((int)wait);
                }