diff options
author | Filippos Karapetis | 2007-06-19 11:41:06 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-06-19 11:41:06 +0000 |
commit | aeb9668d6641059866d745df4026ccc88985f864 (patch) | |
tree | a5e50e8fe934cf10c1501177209bc18273b87eb7 /engines/saga | |
parent | 4ffd38a19999053dcd6796df4e0bda9d25001032 (diff) | |
download | scummvm-rg350-aeb9668d6641059866d745df4026ccc88985f864.tar.gz scummvm-rg350-aeb9668d6641059866d745df4026ccc88985f864.tar.bz2 scummvm-rg350-aeb9668d6641059866d745df4026ccc88985f864.zip |
When loading a game from the same chapter as the current chapter in IHNM, the game will now be loaded correctly
svn-id: r27546
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/saveload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp index f5504ab59a..05cf2f3aee 100644 --- a/engines/saga/saveload.cpp +++ b/engines/saga/saveload.cpp @@ -268,9 +268,10 @@ void SagaEngine::load(const char *fileName) { sceneNumber = in->readSint32LE(); // Protagonist if (getGameType() != GType_ITE) { + int currentChapter = _scene->currentChapterNumber(); _scene->setChapterNumber(in->readSint32LE()); _scene->setProtag(in->readSint32LE()); - if (_scene->currentChapterNumber()) + if (_scene->currentChapterNumber() != currentChapter) _scene->changeScene(-2, 0, kTransitionFade, _scene->currentChapterNumber()); _scene->setCurrentMusicTrack(in->readSint32LE()); _scene->setCurrentMusicRepeat(in->readSint32LE()); |