- always pause the game when the console is open.

This commit is contained in:
Christoph Oelckers 2019-12-07 10:01:03 +01:00
parent ddfb2223db
commit ef87d2d4f9
3 changed files with 2 additions and 8 deletions

View file

@ -922,7 +922,7 @@ void Menu_Close(int playerid)
bool M_Active()
{
return DMenu::CurrentMenu != nullptr;
return DMenu::CurrentMenu != nullptr || ConsoleState == c_down || ConsoleState == c_falling;
}
//=============================================================================

View file

@ -1999,12 +1999,6 @@ void MenuLevel(void)
break;
}
// force the use of menus at all time
if (!M_Active() && !ConPanel)
{
inputState.SetKeyStatus(sc_Escape);
}
// must lock the clock for drawing so animations will happen
totalclocklock = totalclock;

View file

@ -2478,7 +2478,7 @@ MoveScrollMode2D(PLAYERp pp)
}
}
if (!M_Active() && !HelpInputMode && !ConPanel)
if (!HelpInputMode && !ConPanel)
{
if (buttonMap.ButtonDown(gamefunc_Move_Forward))
{