mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-10 10:02:41 +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)
|
if (mapheaderinfo[mapnum]->lumpnum == LUMPERROR)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Check for TOL
|
// Check for TOL (permits TEST RUN outside of time attack)
|
||||||
if (mapheaderinfo[mapnum]->typeoflevel && !(mapheaderinfo[mapnum]->typeoflevel & levelsearch->typeoflevel))
|
if ((levelsearch->timeattack || mapheaderinfo[mapnum]->typeoflevel)
|
||||||
|
&& !(mapheaderinfo[mapnum]->typeoflevel & levelsearch->typeoflevel))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Should the map be hidden?
|
// Should the map be hidden?
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue