mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
S_PopulateSoundTestSequence: Show Tutorial maps before Cups
Previously after Cups, as part of Lost & Found tracks
This commit is contained in:
parent
4de4c9e57d
commit
f3af88200f
1 changed files with 20 additions and 2 deletions
|
|
@ -1317,7 +1317,22 @@ void S_PopulateSoundTestSequence(void)
|
||||||
|
|
||||||
tail = &soundtest.sequence.next;
|
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;
|
cupheader_t *cup;
|
||||||
for (cup = kartcupheaders; cup; cup = cup->next)
|
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++)
|
for (i = 0; i < nummapheaders; i++)
|
||||||
{
|
{
|
||||||
if (!mapheaderinfo[i])
|
if (!mapheaderinfo[i])
|
||||||
|
|
@ -1347,6 +1362,9 @@ void S_PopulateSoundTestSequence(void)
|
||||||
if (mapheaderinfo[i]->cup != NULL)
|
if (mapheaderinfo[i]->cup != NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (mapheaderinfo[i]->typeoflevel & TOL_TUTORIAL)
|
||||||
|
continue;
|
||||||
|
|
||||||
S_InsertMapIntoSoundTestSequence(i, &tail);
|
S_InsertMapIntoSoundTestSequence(i, &tail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue