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:
Timothy C. McGrath 2002-05-26 20:30:12 +00:00
parent 3edc57ef93
commit 9666243498
2 changed files with 3 additions and 3 deletions

View file

@ -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 ();