Fix detection of menu sounds in EVENT_SOUND

git-svn-id: https://svn.eduke32.com/eduke32@5875 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-09-18 03:54:45 +00:00
parent 543e7f67c2
commit f5363194ff

View file

@ -1102,7 +1102,6 @@ void G_DisplayRest(int32_t smoothratio)
{ {
I_EscapeTriggerClear(); I_EscapeTriggerClear();
S_PauseSounds(1); S_PauseSounds(1);
S_MenuSound();
M_OpenMenu(myconnectindex); M_OpenMenu(myconnectindex);
@ -1111,6 +1110,8 @@ void G_DisplayRest(int32_t smoothratio)
if (g_player[myconnectindex].ps->gm&MODE_GAME) M_ChangeMenu(MENU_MAIN_INGAME); if (g_player[myconnectindex].ps->gm&MODE_GAME) M_ChangeMenu(MENU_MAIN_INGAME);
else M_ChangeMenu(MENU_MAIN); else M_ChangeMenu(MENU_MAIN);
screenpeek = myconnectindex; screenpeek = myconnectindex;
S_MenuSound();
} }
} }