mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
Fixed my mistake - Had added a bracket which caused physics only to be
done every maxtic instead of every *mintic* which is what it was supposed to be doing. Ooops. Also minor whitespace cleaning in sv_init.c Tim McGrath (Misty)
This commit is contained in:
parent
3edc57ef93
commit
9666243498
2 changed files with 3 additions and 3 deletions
|
@ -1888,8 +1888,9 @@ SV_Frame (float time)
|
|||
// don't bother running a frame if sys_ticrate seconds haven't passed
|
||||
sv_frametime = realtime - old_time;
|
||||
if ((sv_frametime >= sv_mintic->value) || (sv_frametime <= 0)) {
|
||||
if ((sv_frametime > sv_maxtic->value) || (sv_frametime <= 0)) {
|
||||
if (sv_frametime > sv_maxtic->value) {
|
||||
sv_frametime = sv_maxtic->value;
|
||||
}
|
||||
old_time = realtime;
|
||||
|
||||
*sv_globals.frametime = sv_frametime;
|
||||
|
@ -1897,7 +1898,6 @@ SV_Frame (float time)
|
|||
SV_Physics ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// get packets
|
||||
SV_ReadPackets ();
|
||||
|
|
Loading…
Reference in a new issue