mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 21:20:54 +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
19
src/m_menu.c
19
src/m_menu.c
|
@ -9420,7 +9420,6 @@ static void M_ToggleSFX(INT32 choice)
|
||||||
{
|
{
|
||||||
sound_disabled = false;
|
sound_disabled = false;
|
||||||
I_StartupSound();
|
I_StartupSound();
|
||||||
if (sound_disabled) return;
|
|
||||||
S_InitSfxChannels(cv_soundvolume.value);
|
S_InitSfxChannels(cv_soundvolume.value);
|
||||||
S_StartSound(NULL, sfx_strpst);
|
S_StartSound(NULL, sfx_strpst);
|
||||||
OP_SoundOptionsMenu[6].status = IT_STRING | IT_CVAR;
|
OP_SoundOptionsMenu[6].status = IT_STRING | IT_CVAR;
|
||||||
|
@ -9428,20 +9427,10 @@ static void M_ToggleSFX(INT32 choice)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (sound_disabled)
|
sound_disabled = true;
|
||||||
{
|
S_StopSounds();
|
||||||
sound_disabled = false;
|
OP_SoundOptionsMenu[6].status = IT_GRAYEDOUT;
|
||||||
S_StartSound(NULL, sfx_strpst);
|
//M_StartMessage(M_GetText("SFX Disabled\n"), NULL, MM_NOTHING);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue