From b7b420819b9a434cfec4eeb035c2466865cfa8b8 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 15 Apr 2024 02:00:59 -0700 Subject: [PATCH] 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. --- src/k_credits.cpp | 1 + src/music.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/k_credits.cpp b/src/k_credits.cpp index 55c0e4b0a..36c364d1d 100644 --- a/src/k_credits.cpp +++ b/src/k_credits.cpp @@ -412,6 +412,7 @@ void F_StartCredits(void) Music_StopAll(); S_StopSounds(); + Music_Play("credits_silence"); // mask any music changes from demos F_NewCreditsMusic("_creds", false); F_CreditsReset(); diff --git a/src/music.cpp b/src/music.cpp index 912a5febb..9d9384b5f 100644 --- a/src/music.cpp +++ b/src/music.cpp @@ -164,6 +164,13 @@ void Music_Init(void) tune.credit = false; } + { + Tune& tune = g_tunes.insert("credits_silence"); + + tune.song = ""; + tune.priority = 100; + } + { Tune& tune = g_tunes.insert("credits");