K_ResetCeremony: Adjust music set

- Qualified/alt 1 is used if there's not enough music for unique First
- Loser Club/alt 0 is used if position is invalid
This commit is contained in:
toaster 2023-06-03 15:01:14 +01:00
parent ddde841194
commit 1f48d0b4ec

View file

@ -318,15 +318,16 @@ void K_ResetCeremony(void)
// Set up music for podium.
{
if (podiumData.rank.position == 1)
if (podiumData.rank.position <= 1)
mapmusrng = 2;
else if (podiumData.rank.position <= 3)
else if (podiumData.rank.position == 2
|| podiumData.rank.position == 3)
mapmusrng = 1;
else
mapmusrng = 0;
if (mapmusrng >= mapheaderinfo[gamemap-1]->musname_size)
mapmusrng = 0;
while (mapmusrng >= max(1, mapheaderinfo[gamemap-1]->musname_size))
mapmusrng--;
mapmusflags |= MUSIC_RELOADRESET;
}