diff --git a/code/server/sv_main.c b/code/server/sv_main.c index b6f11b61..a343c510 100644 --- a/code/server/sv_main.c +++ b/code/server/sv_main.c @@ -798,7 +798,14 @@ void SV_Frame( int msec ) { if ( sv_fps->integer < 1 ) { Cvar_Set( "sv_fps", "10" ); } + frameMsec = 1000 / sv_fps->integer * com_timescale->value; + // don't let it scale below 1ms + if(frameMsec < 1) + { + Cvar_Set("timescale", va("%f", sv_fps->integer / 1000.0f)); + frameMsec = 1; + } sv.timeResidual += msec;