mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Correctly handle 0 timescale
This commit is contained in:
parent
1f8c2c56eb
commit
bea6fcff13
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue