- block Escape to toggle the console while AppActive is false.

This is for testing #174 - this is the only place in the code where the escape key is explicitly checked.
This commit is contained in:
Christoph Oelckers 2021-02-27 13:47:30 +01:00
parent d28d5a5e1f
commit ce87e18f90

View file

@ -70,6 +70,8 @@
#define RIGHTMARGIN 8
#define BOTTOMARGIN 12
extern bool AppActive;
CUSTOM_CVAR(Int, con_buffersize, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
{
// ensure a minimum size
@ -1039,7 +1041,7 @@ static bool C_HandleKey (event_t *ev, FCommandBuffer &buffer)
// Close console and clear command line. But if we're in the
// fullscreen console mode, there's nothing to fall back on
// if it's closed, so open the main menu instead.
if (gamestate == GS_STARTUP)
if (gamestate == GS_STARTUP || !AppActive)
{
return false;
}