diff options
author | Paul Gilbert | 2018-03-03 22:15:50 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-03-04 22:40:42 -0500 |
commit | 50630efde6d0f42f4d5f371d6818afac64ba86f5 (patch) | |
tree | 034029b8f90e94daaca83e6ff9413b4508c7dc97 /engines/xeen/scripts.cpp | |
parent | 92c49a857161b1650ca197c71668ee189d667e48 (diff) | |
download | scummvm-rg350-50630efde6d0f42f4d5f371d6818afac64ba86f5.tar.gz scummvm-rg350-50630efde6d0f42f4d5f371d6818afac64ba86f5.tar.bz2 scummvm-rg350-50630efde6d0f42f4d5f371d6818afac64ba86f5.zip |
XEEN: Fix loading saves from main menus and launcher
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r-- | engines/xeen/scripts.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index e08fd1b5c0..679e48c5b0 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1084,6 +1084,10 @@ bool Scripts::cmdCutsceneEndClouds(ParamsIterator ¶ms) { party._mazeId = 28; party._mazePosition = Common::Point(18, 4); + g_vm->_gameWon[0] = true; + g_vm->_finalScore[0] = party.getScore(); + g_vm->saveSettings(); + doCloudsEnding(); return false; } @@ -1416,6 +1420,10 @@ bool Scripts::cmdCutsceneEndDarkside(ParamsIterator ¶ms) { party._mazeDirection = DIR_NORTH; party._mazePosition = Common::Point(25, 21); + g_vm->_gameWon[1] = true; + g_vm->_finalScore[1] = party.getScore(); + g_vm->saveSettings(); + doDarkSideEnding(); return false; } |