mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Amend r7987 to only clear input if actually in the menu
git-svn-id: https://svn.eduke32.com/eduke32@8008 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
108a71cadb
commit
002a52033d
1 changed files with 6 additions and 4 deletions
|
@ -4538,10 +4538,14 @@ void Menu_Open(uint8_t playerID)
|
||||||
|
|
||||||
void Menu_Close(uint8_t playerID)
|
void Menu_Close(uint8_t playerID)
|
||||||
{
|
{
|
||||||
if (g_player[playerID].ps->gm & MODE_GAME)
|
auto & gm = g_player[playerID].ps->gm;
|
||||||
|
if (gm & MODE_GAME)
|
||||||
{
|
{
|
||||||
|
if (gm & MODE_MENU)
|
||||||
|
I_ClearAllInput();
|
||||||
|
|
||||||
// The following lines are here so that you cannot close the menu when no game is running.
|
// The following lines are here so that you cannot close the menu when no game is running.
|
||||||
g_player[playerID].ps->gm &= ~MODE_MENU;
|
gm &= ~MODE_MENU;
|
||||||
mouseLockToWindow(1);
|
mouseLockToWindow(1);
|
||||||
|
|
||||||
if ((!g_netServer && ud.multimode < 2) && ud.recstat != 2)
|
if ((!g_netServer && ud.multimode < 2) && ud.recstat != 2)
|
||||||
|
@ -4562,8 +4566,6 @@ void Menu_Close(uint8_t playerID)
|
||||||
walock[TILE_SAVESHOT] = 1;
|
walock[TILE_SAVESHOT] = 1;
|
||||||
G_UpdateScreenArea();
|
G_UpdateScreenArea();
|
||||||
S_PauseSounds(false);
|
S_PauseSounds(false);
|
||||||
|
|
||||||
I_ClearAllInput();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue