Merge branch 'fix-perfect-eval-musicdef' into 'master'

Fix music credit appearing on perfect evaluation screen

Closes #1283

See merge request KartKrew/Kart!2293
This commit is contained in:
toaster 2024-04-15 13:40:32 +00:00
commit 923de2667e
2 changed files with 8 additions and 0 deletions

View file

@ -412,6 +412,7 @@ void F_StartCredits(void)
Music_StopAll(); Music_StopAll();
S_StopSounds(); S_StopSounds();
Music_Play("credits_silence"); // mask any music changes from demos
F_NewCreditsMusic("_creds", false); F_NewCreditsMusic("_creds", false);
F_CreditsReset(); F_CreditsReset();

View file

@ -164,6 +164,13 @@ void Music_Init(void)
tune.credit = false; tune.credit = false;
} }
{
Tune& tune = g_tunes.insert("credits_silence");
tune.song = "";
tune.priority = 100;
}
{ {
Tune& tune = g_tunes.insert("credits"); Tune& tune = g_tunes.insert("credits");