mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-01 07:11:02 +00:00
Maintain compat for record attack replays
This commit is contained in:
parent
272ba600e2
commit
61893c613c
1 changed files with 20 additions and 14 deletions
|
@ -6031,6 +6031,9 @@ void G_BeginRecording(void)
|
||||||
|
|
||||||
demoflags |= gametype<<DF_GAMESHIFT;
|
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 */
|
demoflags |= DF_FILELIST;/* new versions */
|
||||||
|
|
||||||
if (encoremode)
|
if (encoremode)
|
||||||
|
@ -6052,6 +6055,8 @@ void G_BeginRecording(void)
|
||||||
|
|
||||||
WRITEUINT8(demo_p,demoflags);
|
WRITEUINT8(demo_p,demoflags);
|
||||||
|
|
||||||
|
if (demoflags & DF_FILELIST)
|
||||||
|
{
|
||||||
// file list
|
// file list
|
||||||
m = demo_p;/* file count */
|
m = demo_p;/* file count */
|
||||||
demo_p += 1;
|
demo_p += 1;
|
||||||
|
@ -6068,6 +6073,7 @@ void G_BeginRecording(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITEUINT8(m, totalfiles);
|
WRITEUINT8(m, totalfiles);
|
||||||
|
}
|
||||||
|
|
||||||
switch ((demoflags & DF_ATTACKMASK)>>DF_ATTACKSHIFT)
|
switch ((demoflags & DF_ATTACKMASK)>>DF_ATTACKSHIFT)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue