don't call SV_SendDemoMessage when it's only going to bail

This commit is contained in:
Bill Currie 2004-05-12 19:57:21 +00:00
parent 26a3b4fa54
commit 6fd41b9e9d
2 changed files with 2 additions and 5 deletions

View file

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

View file

@ -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