diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/module.mk | 2 | ||||
-rw-r--r-- | engines/xeen/swordsofxeen/swordsofxeen_menu.cpp | 1 | ||||
-rw-r--r-- | engines/xeen/worldofxeen/worldofxeen_menu.cpp | 8 | ||||
-rw-r--r-- | engines/xeen/xeen.cpp | 1 |
4 files changed, 10 insertions, 2 deletions
diff --git a/engines/xeen/module.mk b/engines/xeen/module.mk index 1b3fbcb231..fcd99a89d5 100644 --- a/engines/xeen/module.mk +++ b/engines/xeen/module.mk @@ -8,7 +8,7 @@ MODULE_OBJS := \ worldofxeen/worldofxeen.o \ worldofxeen/worldofxeen_resources.o \ swordsofxeen/swordsofxeen.o \ - swordsofxeen/swordsofxeen_menu.h \ + swordsofxeen/swordsofxeen_menu.o \ character.o \ combat.o \ cutscenes.o \ diff --git a/engines/xeen/swordsofxeen/swordsofxeen_menu.cpp b/engines/xeen/swordsofxeen/swordsofxeen_menu.cpp index f0ddccdd34..ce424b90c0 100644 --- a/engines/xeen/swordsofxeen/swordsofxeen_menu.cpp +++ b/engines/xeen/swordsofxeen/swordsofxeen_menu.cpp @@ -84,6 +84,7 @@ void MainMenu::execute() { } break; case Common::KEYCODE_l: + _vm->_saves->newGame(); if (_vm->_saves->loadGame()) _vm->_gameMode = GMODE_PLAY_GAME; break; diff --git a/engines/xeen/worldofxeen/worldofxeen_menu.cpp b/engines/xeen/worldofxeen/worldofxeen_menu.cpp index 42a55885a0..7f5e7f35c1 100644 --- a/engines/xeen/worldofxeen/worldofxeen_menu.cpp +++ b/engines/xeen/worldofxeen/worldofxeen_menu.cpp @@ -94,7 +94,7 @@ void WorldOfXeenMenu::execute() { int key = toupper(_buttonValue); _buttonValue = 0; - if (key == 27) { + if (key == Common::KEYCODE_ESCAPE) { // Hide the options menu closeWindow(); break; @@ -115,6 +115,12 @@ void WorldOfXeenMenu::execute() { _vm->_gameMode = GMODE_PLAY_GAME; closeWindow(); return; + } else if (key == 'L') { + _vm->_saves->newGame(); + if (_vm->_saves->loadGame()) { + _vm->_gameMode = GMODE_PLAY_GAME; + break; + } } } } diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp index 13c831bf3a..21db8b270f 100644 --- a/engines/xeen/xeen.cpp +++ b/engines/xeen/xeen.cpp @@ -203,6 +203,7 @@ void XeenEngine::play() { } if (_loadSaveSlot >= 0) { + _saves->newGame(); _saves->loadGameState(_loadSaveSlot); _loadSaveSlot = -1; } else { |