Skip to content
Permalink
Browse files

XEEN: Fix opening Other Options menu after canceling loading a save

  • Loading branch information
dreammaster committed Apr 29, 2018
1 parent e403167 commit 7798de5bc60f267d71d8ac85e626326b1bdd157c
Showing with 7 additions and 2 deletions.
  1. +7 −2 engines/xeen/worldofxeen/worldofxeen_menu.cpp
@@ -258,6 +258,7 @@ void WorldOfXeenCDMainMenuContainer::showMenuDialog() {
/*------------------------------------------------------------------------*/

bool MainMenuDialog::handleEvents() {
FileManager &files = *g_vm->_files;
checkEvents(g_vm);
int difficulty;

@@ -274,14 +275,18 @@ bool MainMenuDialog::handleEvents() {
g_vm->_gameMode = GMODE_PLAY_GAME;
break;

case Common::KEYCODE_l:
case Common::KEYCODE_l: {
// Load existing game
int ccNum = files._ccNum;
g_vm->_saves->newGame();
if (!g_vm->_saves->loadGame())
if (!g_vm->_saves->loadGame()) {
files.setGameCc(ccNum);
return true;
}

g_vm->_gameMode = GMODE_PLAY_GAME;
break;
}

case Common::KEYCODE_c:
case Common::KEYCODE_v:

0 comments on commit 7798de5

Please sign in to comment.
You can’t perform that action at this time.