aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/scripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r--engines/xeen/scripts.cpp8
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 &params) {
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 &params) {
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;
}