Allowed the 1.13 custom message boxes (corpse handling, CTRL+. one etc.) to be escaped/skipped via ESC key (by Shadooow).

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9031 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-05-16 18:48:05 +00:00
parent a2e0080227
commit aa088af952
+5
View File
@@ -1557,6 +1557,11 @@ UINT32 MessageBoxScreenHandle( )
gMsgBox.bHandled = MSG_BOX_RETURN_NO;
memset(gszMsgBoxInputString,0,sizeof(CHAR16)*255);
}
//shadooow - 20210515 - allowing to escape from our custom multibutton message boxes
else if (gMsgBox.usFlags & MSG_BOX_FLAG_GENERIC_FOUR_BUTTONS || gMsgBox.usFlags & MSG_BOX_FLAG_GENERIC_EIGHT_BUTTONS || gMsgBox.usFlags & MSG_BOX_FLAG_GENERIC_SIXTEEN_BUTTONS)
{
gMsgBox.bHandled = 99;
}
}
if( InputEvent.usParam == ENTER )