mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-08 00:52:55 +00:00
M_CanShowLevelInList: Do not permit Test Run in time attack
Also improves the associated comment and indentation
This commit is contained in:
parent
45891ac22f
commit
756feaa20b
1 changed files with 3 additions and 2 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue