mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +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);
|
||||
Close();
|
||||
if (!CurrentMenu && gamestate == GS_MENUSCREEN) C_FullConsole();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -964,7 +965,6 @@ void M_ClearMenus (bool final)
|
|||
if (!final)
|
||||
{
|
||||
gi->MenuClosed();
|
||||
if (gamestate == GS_MENUSCREEN) C_FullConsole();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -693,6 +693,13 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
|
|||
//MREAD(Player,sizeof(PLAYER), numplayers,fil);
|
||||
|
||||
//save players info
|
||||
|
||||
for (auto& pp : Player)
|
||||
{
|
||||
pp.cookieTime = 0;
|
||||
memset(pp.cookieQuote, 0, sizeof(pp.cookieQuote));
|
||||
}
|
||||
|
||||
for (i = 0; i < numplayers; i++)
|
||||
{
|
||||
pp = &Player[i];
|
||||
|
|
Loading…
Reference in a new issue