CGE: Fix bug #3557904 - Shadow at wrong position

This commit is contained in:
Strangerke 2012-09-05 08:12:14 +02:00
parent 6e14e97670
commit 6472ef86bb

View File

@ -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;