mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-29 05:21:54 +00:00
More unnecessary if conditions, toggle SFX menu
This commit is contained in:
parent
b767a0bfd1
commit
1b2d28bc7a
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…
Add table
Reference in a new issue