Skip to content

Commit

Permalink
XEEN: Fix display of the 123 Chooser dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 8, 2018
1 parent baf745e commit 2888953
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engines/xeen/dialogs/dialogs_input.cpp
Expand Up @@ -252,6 +252,8 @@ int Choose123::execute(int numOptions) {
}

events.wait(delay);
checkEvents(_vm);

if (_vm->shouldExit())
return 0;
} while (!_buttonValue);
Expand Down
4 changes: 3 additions & 1 deletion engines/xeen/scripts.cpp
Expand Up @@ -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;
}

Expand Down Expand Up @@ -1394,6 +1394,8 @@ bool Scripts::cmdFallToMap(ParamsIterator &params) {
}

bool Scripts::cmdDisplayMain(ParamsIterator &params) {
_windowIndex = 11;

display(false, 0);
return true;
}
Expand Down

0 comments on commit 2888953

Please sign in to comment.