]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
slowmo: when slowmo is < 1, restrict sys_ticrate not to 0.1 but to 0.1 / slowmo....
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Dec 2009 08:46:01 +0000 (08:46 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Dec 2009 08:46:01 +0000 (08:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9598 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 438c7bc6d263b9cf6dcac27237a66e7a6dbca878..549f0dfac471e615b523cd67fee4f7f7aaa63ead 100644 (file)
--- a/host.c
+++ b/host.c
@@ -770,7 +770,10 @@ void Host_Main(void)
                                        aborttime = realtime + 0.1;
                                }
                        }
-                       advancetime = min(advancetime, 0.1);
+                       if(slowmo.value > 0 && slowmo.value < 1)
+                               advancetime = min(advancetime, 0.1 / slowmo.value);
+                       else
+                               advancetime = min(advancetime, 0.1);
 
                        if(advancetime > 0)
                        {