From: divverent Date: Sun, 20 Dec 2009 08:46:01 +0000 (+0000) Subject: slowmo: when slowmo is < 1, restrict sys_ticrate not to 0.1 but to 0.1 / slowmo.... X-Git-Tag: xonotic-v0.1.0preview~1049 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=df60a2bed892e2f1f3b993846fd8bad5f56b037e;hp=34d9f62cf707eb7d02f463cb919799291e114698;p=xonotic%2Fdarkplaces.git 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 --- 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) {