mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
don't call SV_SendDemoMessage when it's only going to bail
This commit is contained in:
parent
26a3b4fa54
commit
6fd41b9e9d
2 changed files with 2 additions and 5 deletions
|
@ -1978,7 +1978,8 @@ SV_Frame (float time)
|
|||
SV_SendClientMessages ();
|
||||
|
||||
demo_start = Sys_DoubleTime ();
|
||||
SV_SendDemoMessage ();
|
||||
if (sv.demorecording)
|
||||
SV_SendDemoMessage ();
|
||||
demo_end = Sys_DoubleTime ();
|
||||
svs.stats.demo += demo_end - demo_start;
|
||||
|
||||
|
|
|
@ -826,15 +826,11 @@ SV_SendDemoMessage (void)
|
|||
int stats[MAX_CL_STATS];
|
||||
float min_fps;
|
||||
|
||||
if (!sv.demorecording)
|
||||
return;
|
||||
|
||||
if (sv_demoPings->value && sv.time - demo.pingtime > sv_demoPings->value) {
|
||||
SV_DemoPings ();
|
||||
demo.pingtime = sv.time;
|
||||
}
|
||||
|
||||
|
||||
if (!sv_demofps->value)
|
||||
min_fps = 20.0;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue