From df60a2bed892e2f1f3b993846fd8bad5f56b037e Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 20 Dec 2009 08:46:01 +0000 Subject: [PATCH] slowmo: when slowmo is < 1, restrict sys_ticrate not to 0.1 but to 0.1 / slowmo. Helps with seeing what lerping does. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9598 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host.c b/host.c index 438c7bc6..549f0dfa 100644 --- 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) { -- 2.39.2