From d78dccb80f70386abb766ee18db0e9be0830b879 Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 26 Apr 2024 15:46:59 +0100 Subject: [PATCH] In Tutorial gametype, permit all courses even if not visited Allows you to come back to Brakes without having to play Rings again --- src/menus/transient/level-select.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/menus/transient/level-select.c b/src/menus/transient/level-select.c index c7e9ae12d..486104117 100644 --- a/src/menus/transient/level-select.c +++ b/src/menus/transient/level-select.c @@ -103,11 +103,15 @@ boolean M_CanShowLevelInList(INT16 mapnum, levelsearch_t *levelsearch) // Finally, the most complex check: does the map have lock conditions? if (levelsearch->checklocked) { - // Check for visitation - if (!(mapheaderinfo[mapnum]->menuflags & LF2_NOVISITNEEDED) - && !(mapheaderinfo[mapnum]->records.mapvisited & MV_VISITED) - && !(cup && cup->cachedlevels[0] == mapnum)) - return false; + // All tutorial courses can be visited for the first time once the game has truly started. + if (levelsearch->tutorial == false || M_GameTrulyStarted() == false) + { + // Check for visitation + if (!(mapheaderinfo[mapnum]->menuflags & LF2_NOVISITNEEDED) + && !(mapheaderinfo[mapnum]->records.mapvisited & MV_VISITED) + && !(cup && cup->cachedlevels[0] == mapnum)) + return false; + } // Check for completion if ((mapheaderinfo[mapnum]->menuflags & LF2_FINISHNEEDED)