mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +00:00
- only go from menu to console when closing with Escape.
This commit is contained in:
parent
c0da85d0ff
commit
4469cf7edb
2 changed files with 8 additions and 1 deletions
|
@ -208,6 +208,7 @@ bool DMenu::MenuEvent (int mkey, bool fromcontroller)
|
||||||
{
|
{
|
||||||
M_MenuSound(CurrentMenu->mParentMenu? BackSound : CloseSound);
|
M_MenuSound(CurrentMenu->mParentMenu? BackSound : CloseSound);
|
||||||
Close();
|
Close();
|
||||||
|
if (!CurrentMenu && gamestate == GS_MENUSCREEN) C_FullConsole();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -964,7 +965,6 @@ void M_ClearMenus (bool final)
|
||||||
if (!final)
|
if (!final)
|
||||||
{
|
{
|
||||||
gi->MenuClosed();
|
gi->MenuClosed();
|
||||||
if (gamestate == GS_MENUSCREEN) C_FullConsole();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -693,6 +693,13 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
|
||||||
//MREAD(Player,sizeof(PLAYER), numplayers,fil);
|
//MREAD(Player,sizeof(PLAYER), numplayers,fil);
|
||||||
|
|
||||||
//save players info
|
//save players info
|
||||||
|
|
||||||
|
for (auto& pp : Player)
|
||||||
|
{
|
||||||
|
pp.cookieTime = 0;
|
||||||
|
memset(pp.cookieQuote, 0, sizeof(pp.cookieQuote));
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < numplayers; i++)
|
for (i = 0; i < numplayers; i++)
|
||||||
{
|
{
|
||||||
pp = &Player[i];
|
pp = &Player[i];
|
||||||
|
|
Loading…
Reference in a new issue