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

@ -355,7 +355,7 @@ SV_SpawnServer (const char *server)
sv.time = 1.0;
// Misty HACKHACKHACK
realtime = 0;
strncpy (sv.name, server, sizeof (sv.name));
snprintf (sv.modelname, sizeof (sv.modelname), "maps/%s.bsp", server);
sv.worldmodel = Mod_ForName (sv.modelname, true);

View file

@ -1888,14 +1888,14 @@ 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;
SV_Physics ();
}
}
}