S_PopulateSoundTestSequence: Show Tutorial maps before Cups

Previously after Cups, as part of Lost & Found tracks
This commit is contained in:
toaster 2024-03-09 22:34:51 +00:00
parent 4de4c9e57d
commit f3af88200f

View file

@ -1317,7 +1317,22 @@ void S_PopulateSoundTestSequence(void)
tail = &soundtest.sequence.next;
// We iterate over all cups.
// We iterate over all tutorial maps.
for (i = 0; i < nummapheaders; i++)
{
if (!mapheaderinfo[i])
continue;
if (mapheaderinfo[i]->cup != NULL)
continue;
if ((mapheaderinfo[i]->typeoflevel & TOL_TUTORIAL) == 0)
continue;
S_InsertMapIntoSoundTestSequence(i, &tail);
}
// Next, we iterate over all cups.
{
cupheader_t *cup;
for (cup = kartcupheaders; cup; cup = cup->next)
@ -1338,7 +1353,7 @@ void S_PopulateSoundTestSequence(void)
}
}
// Then, we iterate over all non-cupped maps.
// Then, we iterate over all remaining non-cupped maps.
for (i = 0; i < nummapheaders; i++)
{
if (!mapheaderinfo[i])
@ -1347,6 +1362,9 @@ void S_PopulateSoundTestSequence(void)
if (mapheaderinfo[i]->cup != NULL)
continue;
if (mapheaderinfo[i]->typeoflevel & TOL_TUTORIAL)
continue;
S_InsertMapIntoSoundTestSequence(i, &tail);
}