From 04ceb09fd494474a9f66dd896966303be47a4b78 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 7 Jun 2023 23:05:55 +0100 Subject: [PATCH] Delay wrongwarp music credit until the kayfabe is dropped --- src/menus/extras-wrong.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/menus/extras-wrong.c b/src/menus/extras-wrong.c index a0071a93a..5f40d7168 100644 --- a/src/menus/extras-wrong.c +++ b/src/menus/extras-wrong.c @@ -2,6 +2,7 @@ /// \brief Wrongwarp #include "../k_menu.h" +#include "../s_sound.h" struct wrongwarp_s wrongwarp; @@ -18,11 +19,17 @@ void M_WrongWarp(INT32 choice) MISC_WrongWarpDef.prevMenu = currentMenu; M_SetupNextMenu(&MISC_WrongWarpDef, false); + + // Done here to avoid immediate music credit + S_ChangeMusicInternal("YEAWAY", true); } static void M_WrongWarpTick(void) { wrongwarp.ticker++; + + if (wrongwarp.ticker == 2*TICRATE) + S_ShowMusicCredit(); } static boolean M_WrongWarpInputs(INT32 ch) @@ -43,7 +50,7 @@ menu_t MISC_WrongWarpDef = { 0, 0, 0, 0, MBF_SOUNDLESS, - "YEAWAY", + ".", 98, 0, M_DrawWrongWarp, M_WrongWarpTick,