Menus: Don't play EXITMENUSOUND when trying to close a root menu outside of an active game.

git-svn-id: https://svn.eduke32.com/eduke32@6459 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-09-27 05:22:35 +00:00
parent 788ba4f373
commit 5967749a10

View file

@ -6100,7 +6100,8 @@ static void Menu_RunInput(Menu_t *cm)
I_EscapeTriggerClear();
m_mousecaught = 1;
S_PlaySound(EXITMENUSOUND);
if (cm->parentID != MENU_CLOSE || (g_player[myconnectindex].ps->gm & MODE_GAME))
S_PlaySound(EXITMENUSOUND);
Menu_AnimateChange(cm->parentID, cm->parentAnimation);
}