mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-15 01:01:43 +00:00
Menu sound toggle fixes (and add starpost sfx to menu)
This commit is contained in:
parent
4b1bc53db1
commit
691de18fbb
1 changed files with 4 additions and 14 deletions
18
src/m_menu.c
18
src/m_menu.c
|
@ -6954,23 +6954,15 @@ static void M_ToggleSFX(void)
|
|||
{
|
||||
sound_disabled = false;
|
||||
I_StartupSound();
|
||||
if (sound_disabled) return;
|
||||
S_InitSfxChannels(cv_soundvolume.value);
|
||||
S_StartSound(NULL, sfx_strpst);
|
||||
M_StartMessage(M_GetText("SFX Enabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sound_disabled)
|
||||
{
|
||||
sound_disabled = false;
|
||||
M_StartMessage(M_GetText("SFX Enabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
else
|
||||
{
|
||||
sound_disabled = true;
|
||||
S_StopSounds();
|
||||
M_StartMessage(M_GetText("SFX Disabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
sound_disabled = true;
|
||||
S_StopSounds();
|
||||
M_StartMessage(M_GetText("SFX Disabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6980,7 +6972,6 @@ static void M_ToggleDigital(void)
|
|||
{
|
||||
digital_disabled = false;
|
||||
I_InitMusic();
|
||||
if (digital_disabled) return;
|
||||
S_StopMusic();
|
||||
if (Playing())
|
||||
P_RestoreMusic(&players[consoleplayer]);
|
||||
|
@ -7020,7 +7011,6 @@ static void M_ToggleMIDI(void)
|
|||
{
|
||||
midi_disabled = false;
|
||||
I_InitMusic();
|
||||
if (midi_disabled) return;
|
||||
if (Playing())
|
||||
P_RestoreMusic(&players[consoleplayer]);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue