mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
M_GoBack: do not play sound effect on MBF_SOUNDLESS menus
This commit is contained in:
parent
8fa01ee558
commit
e05daf0f11
1 changed files with 4 additions and 1 deletions
|
|
@ -926,6 +926,8 @@ void M_SetupNextMenu(menu_t *menudef, boolean notransition)
|
||||||
|
|
||||||
void M_GoBack(INT32 choice)
|
void M_GoBack(INT32 choice)
|
||||||
{
|
{
|
||||||
|
const INT16 behaviourflags = currentMenu->behaviourflags;
|
||||||
|
|
||||||
(void)choice;
|
(void)choice;
|
||||||
|
|
||||||
noFurtherInput = true;
|
noFurtherInput = true;
|
||||||
|
|
@ -948,6 +950,7 @@ void M_GoBack(INT32 choice)
|
||||||
else // No returning to the title screen.
|
else // No returning to the title screen.
|
||||||
M_QuitSRB2(-1);
|
M_QuitSRB2(-1);
|
||||||
|
|
||||||
|
if (!(behaviourflags & MBF_SOUNDLESS))
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue