Don't let console open with menu keys while the menu is open
This commit is contained in:
parent
b2733eba73
commit
b78fc670d0
|
@ -188,14 +188,14 @@ void D_ProcessEvents(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// console input
|
|
||||||
if (CON_Responder(ev))
|
|
||||||
continue; // ate the event
|
|
||||||
|
|
||||||
// Menu input
|
// Menu input
|
||||||
if (M_Responder(ev))
|
if (M_Responder(ev))
|
||||||
continue; // menu ate the event
|
continue; // menu ate the event
|
||||||
|
|
||||||
|
// console input
|
||||||
|
if (CON_Responder(ev))
|
||||||
|
continue; // ate the event
|
||||||
|
|
||||||
G_Responder(ev);
|
G_Responder(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3150,6 +3150,9 @@ boolean M_Responder(event_t *ev)
|
||||||
if (gamestate == GS_TITLESCREEN && finalecount < TICRATE)
|
if (gamestate == GS_TITLESCREEN && finalecount < TICRATE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (CON_Ready())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (noFurtherInput)
|
if (noFurtherInput)
|
||||||
{
|
{
|
||||||
// Ignore input after enter/escape/other buttons
|
// Ignore input after enter/escape/other buttons
|
||||||
|
@ -3509,6 +3512,7 @@ boolean M_Responder(event_t *ev)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
CON_Responder(ev);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue