aboutsummaryrefslogtreecommitdiff
path: root/engines/cge
diff options
context:
space:
mode:
authorStrangerke2012-09-05 08:12:14 +0200
committerStrangerke2012-09-05 08:12:14 +0200
commit6472ef86bbee92bc02a67d87677dc6b0925a0362 (patch)
treeb45a542663ed956e10962cc0cb00b7ffe05db5dd /engines/cge
parent6e14e9767062a35a39dc216d92e3cbf0ece69902 (diff)
downloadscummvm-rg350-6472ef86bbee92bc02a67d87677dc6b0925a0362.tar.gz
scummvm-rg350-6472ef86bbee92bc02a67d87677dc6b0925a0362.tar.bz2
scummvm-rg350-6472ef86bbee92bc02a67d87677dc6b0925a0362.zip
CGE: Fix bug #3557904 - Shadow at wrong position
Diffstat (limited to 'engines/cge')
-rw-r--r--engines/cge/cge_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 3ba5f7fed9..ecbfba2502 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -207,7 +207,7 @@ bool CGEEngine::loadGame(int slotNumber, SavegameHeader *header, bool tiny) {
readStream = new Common::MemoryReadStream(dataBuffer, size, DisposeAfterUse::YES);
} else {
- // Open up the savgame file
+ // Open up the savegame file
Common::String slotName = generateSaveName(slotNumber);
Common::InSaveFile *saveFile = g_system->getSavefileManager()->openForLoading(slotName);
@@ -316,8 +316,8 @@ Common::Error CGEEngine::saveGameState(int slot, const Common::String &desc) {
// Reload the scene
sceneUp();
- _hero->_x = x;
- _hero->_y = y;
+ // Restore player position
+ _hero->gotoxy(x, y);
_hero->_z = z;
return Common::kNoError;