mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
More unnecessary if conditions, toggle SFX menu
This commit is contained in:
parent
aa1ec4d996
commit
5c20aa79dd
1 changed files with 4 additions and 15 deletions
11
src/m_menu.c
11
src/m_menu.c
|
@ -9420,29 +9420,18 @@ static void M_ToggleSFX(INT32 choice)
|
|||
{
|
||||
sound_disabled = false;
|
||||
I_StartupSound();
|
||||
if (sound_disabled) return;
|
||||
S_InitSfxChannels(cv_soundvolume.value);
|
||||
S_StartSound(NULL, sfx_strpst);
|
||||
OP_SoundOptionsMenu[6].status = IT_STRING | IT_CVAR;
|
||||
//M_StartMessage(M_GetText("SFX Enabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sound_disabled)
|
||||
{
|
||||
sound_disabled = false;
|
||||
S_StartSound(NULL, sfx_strpst);
|
||||
OP_SoundOptionsMenu[6].status = IT_STRING | IT_CVAR;
|
||||
//M_StartMessage(M_GetText("SFX Enabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
else
|
||||
{
|
||||
sound_disabled = true;
|
||||
S_StopSounds();
|
||||
OP_SoundOptionsMenu[6].status = IT_GRAYEDOUT;
|
||||
//M_StartMessage(M_GetText("SFX Disabled\n"), NULL, MM_NOTHING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void M_ToggleDigital(INT32 choice)
|
||||
|
|
Loading…
Reference in a new issue