mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- fixed: parent-less confirmation screens did not process any input.
This commit is contained in:
parent
5d4514060b
commit
1d468190a6
1 changed files with 15 additions and 18 deletions
|
@ -142,27 +142,24 @@ void DMessageBoxMenu::CloseSound()
|
|||
|
||||
void DMessageBoxMenu::HandleResult(bool res)
|
||||
{
|
||||
if (mParentMenu != NULL)
|
||||
if (mMessageMode == 0)
|
||||
{
|
||||
if (mMessageMode == 0)
|
||||
if (mActionFunc)
|
||||
{
|
||||
if (mActionFunc)
|
||||
{
|
||||
mActionFunc(res);
|
||||
Close();
|
||||
}
|
||||
else if (mAction == NAME_None)
|
||||
{
|
||||
mParentMenu->MenuEvent(res? MKEY_MBYes : MKEY_MBNo, false);
|
||||
Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
Close();
|
||||
if (res) M_SetMenu(mAction, -1);
|
||||
}
|
||||
CloseSound();
|
||||
mActionFunc(res);
|
||||
Close();
|
||||
}
|
||||
else if (mAction == NAME_None && mParentMenu)
|
||||
{
|
||||
mParentMenu->MenuEvent(res ? MKEY_MBYes : MKEY_MBNo, false);
|
||||
Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
Close();
|
||||
if (res) M_SetMenu(mAction, -1);
|
||||
}
|
||||
CloseSound();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue