mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
P_DoPlayerExit, P_DoTimeOver: replace Music_StopAll with silent track
- Silent track has priority over level music and invinc/grow themes
This commit is contained in:
parent
b772a66541
commit
46c8b47236
2 changed files with 9 additions and 2 deletions
|
|
@ -57,6 +57,13 @@ void Music_Init(void)
|
|||
tune.priority = 21;
|
||||
}
|
||||
|
||||
{
|
||||
Tune& tune = g_tunes.insert("finish_silence");
|
||||
|
||||
tune.song = "";
|
||||
tune.priority = 30;
|
||||
}
|
||||
|
||||
{
|
||||
Tune& tune = g_tunes.insert("finish");
|
||||
|
||||
|
|
|
|||
|
|
@ -1284,7 +1284,7 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
|
|||
|
||||
if (P_IsLocalPlayer(player) && !specialout && musiccountdown == 0)
|
||||
{
|
||||
Music_StopAll();
|
||||
Music_Play("finish_silence");
|
||||
musiccountdown = MUSIC_COUNTDOWN_MAX;
|
||||
}
|
||||
|
||||
|
|
@ -3787,7 +3787,7 @@ void P_DoTimeOver(player_t *player)
|
|||
|
||||
if (P_IsLocalPlayer(player) && musiccountdown == 0)
|
||||
{
|
||||
Music_StopAll();
|
||||
Music_Play("finish_silence");
|
||||
musiccountdown = MUSIC_COUNTDOWN_MAX;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue