CGE: Fixes for saving games

This commit is contained in:
Paul Gilbert 2011-08-10 19:33:08 +10:00
parent 621fa62e8b
commit 8cad6821bd

View File

@ -239,7 +239,16 @@ Common::Error CGEEngine::loadGameState(int slot) {
}
Common::Error CGEEngine::saveGameState(int slot, const Common::String &desc) {
caveDown();
_oldLev = _lev;
saveSound();
// Write out the user's progress
saveGame(slot, desc);
// Reload the scene
caveUp();
return Common::kNoError;
}