]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
maxidlefps fix for maxfps 0
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Dec 2009 08:32:26 +0000 (08:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Dec 2009 08:32:26 +0000 (08:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9596 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 1f2ccaa4f49469dae384673bb29b3a662daf0ff2..438c7bc6d263b9cf6dcac27237a66e7a6dbca878 100644 (file)
--- a/host.c
+++ b/host.c
@@ -827,7 +827,7 @@ void Host_Main(void)
        //
        //-------------------
 
-               if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || cl_maxfps.value < 1))
+               if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || ((vid_activewindow ? cl_maxfps : cl_maxidlefps).value < 1)))
                {
                        // decide the simulation time
                        if (cls.capturevideo.active)