]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
slowmo: when slowmo is < 1, restrict sys_ticrate not to 0.1 but to 0.1 / slowmo....
[xonotic/darkplaces.git] / 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)
                        {