M_GoBack: do not play sound effect on MBF_SOUNDLESS menus

This commit is contained in:
James R 2024-02-29 21:31:30 -08:00
parent 8fa01ee558
commit e05daf0f11

View file

@ -926,6 +926,8 @@ void M_SetupNextMenu(menu_t *menudef, boolean notransition)
void M_GoBack(INT32 choice)
{
const INT16 behaviourflags = currentMenu->behaviourflags;
(void)choice;
noFurtherInput = true;
@ -948,6 +950,7 @@ void M_GoBack(INT32 choice)
else // No returning to the title screen.
M_QuitSRB2(-1);
if (!(behaviourflags & MBF_SOUNDLESS))
S_StartSound(NULL, sfx_s3k5b);
}