From 8814980a06acfcc1493b20828a5671594f9bc2e4 Mon Sep 17 00:00:00 2001
From: Riku Salminen <38985578+Riku-S@users.noreply.github.com>
Date: Sat, 14 Nov 2020 19:18:36 +0200
Subject: [PATCH] Emeralds and tokens now reset when restarting marathon mode
 in first level

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

diff --git a/src/g_game.c b/src/g_game.c
index 228295b629..528721e2fc 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -2218,6 +2218,10 @@ void G_Ticker(boolean run)
 				{
 					marathonmode |= MA_INIT;
 					marathontime = 0;
+
+					tokenlist = 0;
+					token = 0;
+					emeralds = 0;
 				}
 				else if (G_GametypeUsesLives() && players[consoleplayer].playerstate == PST_LIVE && players[consoleplayer].lives != INFLIVES)
 					players[consoleplayer].lives -= 1;
-- 
GitLab