M_CanShowLevelInList: Do not permit Test Run in time attack

Also improves the associated comment and indentation
This commit is contained in:
toaster 2023-03-13 13:22:57 +00:00
parent 45891ac22f
commit 756feaa20b

View file

@ -57,8 +57,9 @@ boolean M_CanShowLevelInList(INT16 mapnum, levelsearch_t *levelsearch)
if (mapheaderinfo[mapnum]->lumpnum == LUMPERROR)
return false;
// Check for TOL
if (mapheaderinfo[mapnum]->typeoflevel && !(mapheaderinfo[mapnum]->typeoflevel & levelsearch->typeoflevel))
// Check for TOL (permits TEST RUN outside of time attack)
if ((levelsearch->timeattack || mapheaderinfo[mapnum]->typeoflevel)
&& !(mapheaderinfo[mapnum]->typeoflevel & levelsearch->typeoflevel))
return false;
// Should the map be hidden?