diff options
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/code/server/sv_main.c b/code/server/sv_main.c index b6f11b6..a343c51 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; |