diff options
author | Paul Gilbert | 2018-04-08 14:31:39 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-08 15:36:17 -0400 |
commit | 2888953c7b556b74295152acec2d04aad2d128db (patch) | |
tree | d94a1c2b7e000663813c9d05031e622f481a02ef /engines | |
parent | baf745e35e6157d6c239339d5a3356a220f013b8 (diff) | |
download | scummvm-rg350-2888953c7b556b74295152acec2d04aad2d128db.tar.gz scummvm-rg350-2888953c7b556b74295152acec2d04aad2d128db.tar.bz2 scummvm-rg350-2888953c7b556b74295152acec2d04aad2d128db.zip |
XEEN: Fix display of the 123 Chooser dialog
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/dialogs/dialogs_input.cpp | 2 | ||||
-rw-r--r-- | engines/xeen/scripts.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/engines/xeen/dialogs/dialogs_input.cpp b/engines/xeen/dialogs/dialogs_input.cpp index 214aa28e5c..a50dfd00f2 100644 --- a/engines/xeen/dialogs/dialogs_input.cpp +++ b/engines/xeen/dialogs/dialogs_input.cpp @@ -252,6 +252,8 @@ int Choose123::execute(int numOptions) { } events.wait(delay); + checkEvents(_vm); + if (_vm->shouldExit()) return 0; } while (!_buttonValue); diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 499dabcfb4..c21f14c211 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1318,7 +1318,7 @@ bool Scripts::cmdCheckProtection(ParamsIterator ¶ms) { bool Scripts::cmdChooseNumeric(ParamsIterator ¶ms) { int choice = Choose123::show(_vm, params.readByte()); if (choice) { - _lineNum = _event->_parameters[choice]; + _lineNum = _event->_parameters[choice - 1]; return false; } @@ -1394,6 +1394,8 @@ bool Scripts::cmdFallToMap(ParamsIterator ¶ms) { } bool Scripts::cmdDisplayMain(ParamsIterator ¶ms) { + _windowIndex = 11; + display(false, 0); return true; } |