mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Don't let console open with menu keys while the menu is open
This commit is contained in:
parent
b2733eba73
commit
b78fc670d0
2 changed files with 8 additions and 4 deletions
|
@ -188,14 +188,14 @@ void D_ProcessEvents(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
// console input
|
||||
if (CON_Responder(ev))
|
||||
continue; // ate the event
|
||||
|
||||
// Menu input
|
||||
if (M_Responder(ev))
|
||||
continue; // menu ate the event
|
||||
|
||||
// console input
|
||||
if (CON_Responder(ev))
|
||||
continue; // ate the event
|
||||
|
||||
G_Responder(ev);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3150,6 +3150,9 @@ boolean M_Responder(event_t *ev)
|
|||
if (gamestate == GS_TITLESCREEN && finalecount < TICRATE)
|
||||
return false;
|
||||
|
||||
if (CON_Ready())
|
||||
return false;
|
||||
|
||||
if (noFurtherInput)
|
||||
{
|
||||
// Ignore input after enter/escape/other buttons
|
||||
|
@ -3509,6 +3512,7 @@ boolean M_Responder(event_t *ev)
|
|||
return false;
|
||||
|
||||
default:
|
||||
CON_Responder(ev);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue