From: havoc Date: Tue, 8 Mar 2005 02:48:26 +0000 (+0000) Subject: fix continual setting of sys_ticrate to 0.01 due to float rounding errors (now has... X-Git-Tag: xonotic-v0.1.0preview~5113 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e1f916d435e00de413867ab56e086826c63e3be5;p=xonotic%2Fdarkplaces.git fix continual setting of sys_ticrate to 0.01 due to float rounding errors (now has a slight error tolerance) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5055 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index c808ea77..c1aeccfd 100644 --- a/host.c +++ b/host.c @@ -563,7 +563,7 @@ qboolean Host_FilterTime (double time) double timecap, timeleft; realtime += time; - if (sys_ticrate.value < 0.01 || sys_ticrate.value > 0.10001) + if (sys_ticrate.value < 0.00999 || sys_ticrate.value > 0.10001) Cvar_SetValue("sys_ticrate", bound(0.01, sys_ticrate.value, 0.1)); if (slowmo.value < 0) Cvar_SetValue("slowmo", 0);