In Tutorial gametype, permit all courses even if not visited

Allows you to come back to Brakes without having to play Rings again
This commit is contained in:
toaster 2024-04-26 15:46:59 +01:00
parent a9ac7e64c6
commit d78dccb80f

View file

@ -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)