[Scummvm-cvs-logs] scummvm master -> 6472ef86bbee92bc02a67d87677dc6b0925a0362
Strangerke
Strangerke at scummvm.org
Wed Sep 5 08:30:12 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:
6472ef86bb CGE: Fix bug #3557904 - Shadow at wrong position
Commit: 6472ef86bbee92bc02a67d87677dc6b0925a0362
https://github.com/scummvm/scummvm/commit/6472ef86bbee92bc02a67d87677dc6b0925a0362
Author: Strangerke (strangerke at scummvm.org)
Date: 2012-09-04T23:12:14-07:00
Commit Message:
CGE: Fix bug #3557904 - Shadow at wrong position
Changed paths:
engines/cge/cge_main.cpp
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 3ba5f7f..ecbfba2 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;
More information about the Scummvm-git-logs
mailing list