mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Fixing annoying item use after save game (#192)
This commit is contained in:
parent
5687b4c02e
commit
ce61c38660
1 changed files with 9 additions and 11 deletions
|
@ -2071,20 +2071,18 @@ bool CGameMenuItemZEditBitmap::Event(CGameMenuEvent &event)
|
|||
gSaveGameActive = true;
|
||||
return true;
|
||||
case kMenuEventEnter:
|
||||
if (!at35)
|
||||
if (!at35 || bScan)
|
||||
{
|
||||
if (at30)
|
||||
at30(this, &event);
|
||||
if (bScan)
|
||||
{
|
||||
bScan = 0;
|
||||
gGameMenuMgr.m_bScanning = false;
|
||||
}
|
||||
gSaveGameActive = false;
|
||||
return false;
|
||||
}
|
||||
if (bScan)
|
||||
{
|
||||
if (at30)
|
||||
at30(this, &event);
|
||||
bScan = 0;
|
||||
gGameMenuMgr.m_bScanning = false;
|
||||
gSaveGameActive = false;
|
||||
KB_ClearKeyDown(sc_Enter);
|
||||
KB_ClearKeyDown(sc_kpad_Enter);
|
||||
return false;
|
||||
}
|
||||
strncpy(buffer, at20, at24);
|
||||
|
@ -2102,7 +2100,7 @@ bool CGameMenuItemZEditBitmap::Event(CGameMenuEvent &event)
|
|||
case kMenuEventSpace:
|
||||
{
|
||||
char key;
|
||||
if (event.at2 < 128)
|
||||
if (bScan && event.at2 < 128)
|
||||
{
|
||||
if (keystatus[sc_LeftShift] || keystatus[sc_RightShift])
|
||||
key = g_keyAsciiTableShift[event.at2];
|
||||
|
|
Loading…
Reference in a new issue