Introduce a live event backup penalty for non MA_INGAME runs, since the change to saving time causes problems for this.

This commit is contained in:
toaster 2020-07-10 21:36:37 +01:00
parent 4c9cdcca0d
commit 217ac14ac5
1 changed files with 4 additions and 1 deletions

View File

@ -4498,7 +4498,10 @@ void G_SaveGame(UINT32 slot, INT16 mapnum)
P_SaveGame(mapnum);
if (marathonmode)
{
WRITEUINT32(save_p, marathontime);
UINT32 writetime = marathontime;
if (!(marathonmode & MA_INGAME))
marathontime += TICRATE*5; // live event backup penalty because we don't know how long it takes to get to the next map
WRITEUINT32(save_p, writetime);
WRITEUINT8(save_p, (marathonmode & ~MA_INIT));
}