From 6a24bfe5eeb4e9b282cdd1ec9327762c16a8f038 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 17 Nov 2010 11:59:38 +0100 Subject: [PATCH] sys_frametime: if it turns out to be invalid (<= 0), fall back to 60Hz (as sys_ticrate 0 means variable frametime in the engine) --- qcsrc/server/sv_main.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/server/sv_main.qc b/qcsrc/server/sv_main.qc index 5b8ca7ff86..8a73e6799a 100644 --- a/qcsrc/server/sv_main.qc +++ b/qcsrc/server/sv_main.qc @@ -199,6 +199,8 @@ void StartFrame (void) sv_airspeedlimit_nonqw = cvar("sv_airspeedlimit_nonqw"); teamplay = cvar ("teamplay"); sys_frametime = cvar("sys_ticrate") * cvar("slowmo"); + if(sys_frametime <= 0) + sys_frametime = 1.0 / 60.0; // somewhat safe fallback sv_doublejump = cvar("sv_doublejump"); if (timeoutStatus == 1) // just before the timeout (when timeoutStatus will be 2) -- 2.39.2