Don't permit duplicate maps across multiple cups in time attack. A map is only valid for its later groupings in Grand Prix and multiplayer.

This commit is contained in:
toaster 2022-12-18 14:08:26 +00:00
parent 8809c68d55
commit ecfcc1356b

View file

@ -3370,8 +3370,8 @@ boolean M_CanShowLevelInList(INT16 mapnum, UINT32 tol, cupheader_t *cup)
if (levellist.timeattack && (mapheaderinfo[mapnum]->menuflags & LF2_NOTIMEATTACK))
return false;
// Don't permit cup when no cup requested
if (levellist.cupmode && !cup && mapheaderinfo[mapnum]->cup)
// Don't permit cup when no cup requested (also no dupes in time attack)
if (levellist.cupmode && (levellist.timeattack || !cup) && mapheaderinfo[mapnum]->cup != cup)
return false;
// Survived our checks.