Evaluation: play "credits_silence" tune before "credits" to mask any trace of level music from demos

"level_nosync" was reactivating via P_Ticker from credits
demo and showing a music credit for a brief moment, where
there should not be any music credit.
This commit is contained in:
James R 2024-04-15 02:00:59 -07:00
parent 46c70d2683
commit b7b420819b
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");