]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
changed timedemo one-second stats to sync to cl.time (which comes from
[xonotic/darkplaces.git] / cl_demo.c
index a375bbf0c9372220165a4ef3bb9c220c7504ba17..9d8e4a0056c8fab3ed84402109746ad8f19e2eda 100644 (file)
--- 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)
                                        {