Fix bug with demo time
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 22 Sep 2017 17:09:30 +0000 (17:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 22 Sep 2017 17:09:30 +0000 (17:09 +0000)
Some demos may freeze at beginning, this fix this problem.

From: Slava Bacherikov <slava@bacher09.org>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12340 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c

index 5741e81..26265ff 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -239,7 +239,7 @@ void CL_ReadDemoMessage(void)
                                        cls.td_onesecondnexttime++;
                                }
                        }
                                        cls.td_onesecondnexttime++;
                                }
                        }
-                       else if (cl.time <= cl.mtime[0])
+                       else if (cl.time < cl.mtime[0])
                        {
                                // don't need another message yet
                                return;
                        {
                                // don't need another message yet
                                return;