mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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
|
@ -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);
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue