mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-11 01:02:16 +00:00
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:
parent
ddde841194
commit
1f48d0b4ec
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue