From e1f916d435e00de413867ab56e086826c63e3be5 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 8 Mar 2005 02:48:26 +0000 Subject: [PATCH] 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 --- host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2