fix miscounting of timedemo frames on cold/warm runs in the same session
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Dec 2007 07:32:29 +0000 (07:32 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Dec 2007 07:32:29 +0000 (07:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7825 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c

index 2485afb..f6987f4 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -439,5 +439,6 @@ void CL_TimeDemo_f (void)
        cls.timedemo = true;
        // get first message this frame
        cls.td_lastframe = -1;
+       cls.demonum = -1;               // stop demo loop
 }