Fixes by rftr:

- options screen: fixed crash related to handling inputs while the screen was loading/refreshing
- options screen and features screen: added 'Q' input handling to quit to the main menu

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9235 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2022-01-05 09:26:29 +00:00
parent 6a3f5cf29e
commit f986129ab7
2 changed files with 24 additions and 2 deletions
+7
View File
@@ -796,6 +796,13 @@ void GetUserInput()
{
switch (Event.usParam)
{
case 'q':
case 'Q':
//Confirm the Exit to the main menu screen
DoMessageBox(MSG_BOX_BASIC_STYLE, zOptionsText[OPT_RETURN_TO_MAIN], FEATURES_SCREEN, MSG_BOX_FLAG_YESNO,
ConfirmQuitToMainMenuMessageBoxCallBack);
break;
case ESC:
SetExitScreen(guiPreviousScreen);
break;