mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
Fix the "Corrupted demo" error when you play a timedemo while one is already running.
This commit is contained in:
parent
1b972cb132
commit
c2044ccdbf
1 changed files with 2 additions and 1 deletions
|
@ -49,6 +49,7 @@
|
||||||
#include "QF/va.h"
|
#include "QF/va.h"
|
||||||
|
|
||||||
void CL_FinishTimeDemo (void);
|
void CL_FinishTimeDemo (void);
|
||||||
|
int demotime_cached;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
DEMO CODE
|
DEMO CODE
|
||||||
|
@ -75,6 +76,7 @@ CL_StopPlayback (void)
|
||||||
cls.demofile = NULL;
|
cls.demofile = NULL;
|
||||||
cls.state = ca_disconnected;
|
cls.state = ca_disconnected;
|
||||||
cls.demoplayback = 0;
|
cls.demoplayback = 0;
|
||||||
|
demotime_cached = 0;
|
||||||
|
|
||||||
if (cls.timedemo)
|
if (cls.timedemo)
|
||||||
CL_FinishTimeDemo ();
|
CL_FinishTimeDemo ();
|
||||||
|
@ -167,7 +169,6 @@ CL_GetDemoMessage (void)
|
||||||
float demotime;
|
float demotime;
|
||||||
byte c;
|
byte c;
|
||||||
usercmd_t *pcmd;
|
usercmd_t *pcmd;
|
||||||
static int demotime_cached;
|
|
||||||
static float cached_demotime;
|
static float cached_demotime;
|
||||||
|
|
||||||
// read the time from the packet
|
// read the time from the packet
|
||||||
|
|
Loading…
Reference in a new issue