mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Delay wrongwarp music credit until the kayfabe is dropped
This commit is contained in:
parent
8efd4788e7
commit
04ceb09fd4
1 changed files with 8 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue