Maintain compat for record attack replays

This commit is contained in:
fickleheart 2019-03-03 20:41:20 -06:00
parent 272ba600e2
commit 61893c613c

View file

@ -6031,6 +6031,9 @@ void G_BeginRecording(void)
demoflags |= gametype<<DF_GAMESHIFT;
// Demo compat: don't write filelist in record attack for now so those replays can still be submitted to the records site
//@TODO remove this check eventually and always write the file list
if (!modeattacking)
demoflags |= DF_FILELIST;/* new versions */
if (encoremode)
@ -6052,6 +6055,8 @@ void G_BeginRecording(void)
WRITEUINT8(demo_p,demoflags);
if (demoflags & DF_FILELIST)
{
// file list
m = demo_p;/* file count */
demo_p += 1;
@ -6068,6 +6073,7 @@ void G_BeginRecording(void)
}
WRITEUINT8(m, totalfiles);
}
switch ((demoflags & DF_ATTACKMASK)>>DF_ATTACKSHIFT)
{