[Scummvm-cvs-logs] scummvm master -> 5c522575c7aff4706f3fefe0d7f89272aecd2b66
Strangerke
Strangerke at scummvm.org
Sun Aug 5 22:25:29 CEST 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5c522575c7 CGE: Keep Soltys' position when saving
Commit: 5c522575c7aff4706f3fefe0d7f89272aecd2b66
https://github.com/scummvm/scummvm/commit/5c522575c7aff4706f3fefe0d7f89272aecd2b66
Author: Strangerke (strangerke at scummvm.org)
Date: 2012-08-05T13:24:32-07:00
Commit Message:
CGE: Keep Soltys' position when saving
Changed paths:
engines/cge/cge_main.cpp
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 355e163..3ba5f7f 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;
}
More information about the Scummvm-git-logs
mailing list