mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
limit timedemo to vid_maxfps * 5
This commit is contained in:
parent
fa1f5c2c84
commit
4eb2d95ccd
1 changed files with 8 additions and 2 deletions
|
@ -602,9 +602,15 @@ Qcommon_Frame(int usec)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (clienttimedelta < 1000 || servertimedelta < 1000)
|
||||
else
|
||||
{
|
||||
return;
|
||||
/* minimal frame time in timedemo fps * 5 ~ 5000 */
|
||||
int minframetime;
|
||||
|
||||
minframetime = 1000 * 1000 / 5 / vid_maxfps->value;
|
||||
|
||||
if (clienttimedelta < minframetime || servertimedelta < minframetime)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue