- always play menu sounds by calling M_MenuSound to check the menu_sounds CVAR.

This commit is contained in:
Christoph Oelckers 2020-08-02 22:16:26 +02:00
parent d083e12967
commit e434df5328
2 changed files with 2 additions and 2 deletions

View file

@ -375,7 +375,7 @@ void M_StartControlPanel (bool makeSound)
} }
GSnd->SetSfxPaused(true, PAUSESFX_MENU); GSnd->SetSfxPaused(true, PAUSESFX_MENU);
gi->MenuOpened(); gi->MenuOpened();
if (makeSound) gi->MenuSound(ActivateSound); if (makeSound) M_MenuSound(ActivateSound);
inputState.ClearAllInput(); inputState.ClearAllInput();
for (int i = 0; i < NUM_MKEYS; ++i) for (int i = 0; i < NUM_MKEYS; ++i)

View file

@ -360,7 +360,7 @@ bool DMessageBoxMenu::MouseEvent(int type, int x, int y)
} }
if (sel != -1 && sel != messageSelection) if (sel != -1 && sel != messageSelection)
{ {
gi->MenuSound(CursorSound); M_MenuSound(CursorSound);
} }
messageSelection = sel; messageSelection = sel;
if (type == MOUSE_Release) if (type == MOUSE_Release)