aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-08 14:31:39 -0400
committerPaul Gilbert2018-04-08 15:36:17 -0400
commit2888953c7b556b74295152acec2d04aad2d128db (patch)
treed94a1c2b7e000663813c9d05031e622f481a02ef /engines
parentbaf745e35e6157d6c239339d5a3356a220f013b8 (diff)
downloadscummvm-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.cpp2
-rw-r--r--engines/xeen/scripts.cpp4
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 &params) {
bool Scripts::cmdChooseNumeric(ParamsIterator &params) {
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 &params) {
}
bool Scripts::cmdDisplayMain(ParamsIterator &params) {
+ _windowIndex = 11;
+
display(false, 0);
return true;
}