From 5b46db8796589ecf8e17dc2363a45fbfa575ae62 Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Fri, 20 Apr 2001 13:17:48 +0000 Subject: [PATCH] No harm in backporting a few fixes :) --- source/cl_demo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/cl_demo.c b/source/cl_demo.c index 30a9184..fda6dba 100644 --- a/source/cl_demo.c +++ b/source/cl_demo.c @@ -48,6 +48,7 @@ #include "va.h" void CL_FinishTimeDemo (void); +int demotime_cached; /* DEMO CODE @@ -74,6 +75,7 @@ CL_StopPlayback (void) cls.demofile = NULL; cls.state = ca_disconnected; cls.demoplayback = 0; + demotime_cached = 0; if (cls.timedemo) CL_FinishTimeDemo (); @@ -166,7 +168,6 @@ CL_GetDemoMessage (void) float demotime; byte c; usercmd_t *pcmd; - static int demotime_cached; static float cached_demotime; // read the time from the packet