aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2012-08-05 22:24:32 +0200
committerStrangerke2012-08-05 22:24:32 +0200
commit5c522575c7aff4706f3fefe0d7f89272aecd2b66 (patch)
tree5824115c95cd1bde6b40d164daff80b200077b0b /engines
parent745ef462fca7d69e5890659cb1f9fb208ee7c184 (diff)
downloadscummvm-rg350-5c522575c7aff4706f3fefe0d7f89272aecd2b66.tar.gz
scummvm-rg350-5c522575c7aff4706f3fefe0d7f89272aecd2b66.tar.bz2
scummvm-rg350-5c522575c7aff4706f3fefe0d7f89272aecd2b66.zip
CGE: Keep Soltys' position when saving
Diffstat (limited to 'engines')
-rw-r--r--engines/cge/cge_main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 355e163d4b..3ba5f7fed9 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -305,6 +305,10 @@ Common::Error CGEEngine::saveGameState(int slot, const Common::String &desc) {
_hero->park();
_oldLev = _lev;
+ int x = _hero->_x;
+ int y = _hero->_y;
+ int z = _hero->_z;
+
// Write out the user's progress
saveGame(slot, desc);
_commandHandler->addCommand(kCmdLevel, -1, _oldLev, &_sceneLight);
@@ -312,6 +316,10 @@ Common::Error CGEEngine::saveGameState(int slot, const Common::String &desc) {
// Reload the scene
sceneUp();
+ _hero->_x = x;
+ _hero->_y = y;
+ _hero->_z = z;
+
return Common::kNoError;
}