From e3226167dcbebd5838002e432c8052c6fdc005cb Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 24 Jan 2008 02:44:57 +0000 Subject: [PATCH] changed timedemo one-second stats to sync to cl.time (which comes from the demo) rather than realtime, so now they should be more consistent git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8004 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_demo.c b/cl_demo.c index a375bbf0..9d8e4a00 100644 --- a/cl_demo.c +++ b/cl_demo.c @@ -154,14 +154,14 @@ void CL_ReadDemoMessage(void) if (cls.td_frames == 0) { cls.td_starttime = realtime; - cls.td_onesecondnexttime = realtime + 1; + cls.td_onesecondnexttime = cl.time + 1; cls.td_onesecondframes = 0; cls.td_onesecondminframes = 0; cls.td_onesecondmaxframes = 0; cls.td_onesecondavgframes = 0; cls.td_onesecondavgcount = 0; } - if (realtime >= cls.td_onesecondnexttime) + if (cl.time >= cls.td_onesecondnexttime) { if (cls.td_onesecondavgcount == 0) { -- 2.39.2