From f53ab81cfbe6df15c0bd4ddff02d8fbb298c086c Mon Sep 17 00:00:00 2001 From: Shadooow Date: Wed, 26 May 2021 01:34:44 +0000 Subject: [PATCH] allowed the OK button only message box to be escaped with ESC key git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9051 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- MessageBoxScreen.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MessageBoxScreen.cpp b/MessageBoxScreen.cpp index d31d9ffc..616813db 100644 --- a/MessageBoxScreen.cpp +++ b/MessageBoxScreen.cpp @@ -1547,8 +1547,13 @@ UINT32 MessageBoxScreenHandle( ) { if ( gMsgBox.usFlags & MSG_BOX_FLAG_YESNO || gMsgBox.usFlags & MSG_BOX_FLAG_OKSKIP) { - // Exit messagebox - gMsgBox.bHandled = MSG_BOX_RETURN_NO; + // Exit messagebox + gMsgBox.bHandled = MSG_BOX_RETURN_NO; + } + else if (gMsgBox.usFlags & MSG_BOX_FLAG_OK) + { + // Exit messagebox + gMsgBox.bHandled = MSG_BOX_RETURN_OK; } //OJW - 20090208 - Input Box else if( gMsgBox.usFlags & MSG_BOX_FLAG_INPUTBOX )