From 8f1bea71de2af7189a6baa0f4f22793b8e2c4b2c Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 6 Oct 2023 18:47:55 +0100 Subject: [PATCH] G_UpdateRecords: Do not destroy existing record data if you experience other types of modeattacking on the same map Should not have been possible to trigger with current menu setup, but was a hypothetical danger --- src/g_game.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 7a1962946..de0711af5 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -529,20 +529,12 @@ void G_UpdateRecords(void) && (time < UINT32_MAX)) // DNF mapheaderinfo[gamemap-1]->records.time = time; } - else - { - mapheaderinfo[gamemap-1]->records.time = 0; - } if (modeattacking & ATTACKING_LAP) { if ((mapheaderinfo[gamemap-1]->records.lap == 0) || (bestlap < mapheaderinfo[gamemap-1]->records.lap)) mapheaderinfo[gamemap-1]->records.lap = bestlap; } - else - { - mapheaderinfo[gamemap-1]->records.lap = 0; - } // Check emblems when level data is updated if ((earnedEmblems = M_CheckLevelEmblems()))