From 217ac14ac57c472ec4334737360681dd2b36afe7 Mon Sep 17 00:00:00 2001
From: toaster <rollerorbital@gmail.com>
Date: Fri, 10 Jul 2020 21:36:37 +0100
Subject: [PATCH] Introduce a live event backup penalty for non MA_INGAME runs,
 since the change to saving time causes problems for this.

---
 src/g_game.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/g_game.c b/src/g_game.c
index b20157156..b974b87ea 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -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));
 		}
 
-- 
GitLab