Loading saved games in the demo version of IHNM should work now

svn-id: r28345
This commit is contained in:
Filippos Karapetis 2007-07-31 00:06:57 +00:00
parent 889d1a4aee
commit 3ee5ee2c06
2 changed files with 5 additions and 2 deletions

View file

@ -276,7 +276,10 @@ void SagaEngine::load(const char *fileName) {
_scene->setCurrentMusicTrack(in->readSint32LE());
_scene->setCurrentMusicRepeat(in->readSint32LE());
_music->stop();
_music->play(_music->_songTable[_scene->getCurrentMusicTrack()], _scene->getCurrentMusicRepeat() ? MUSIC_LOOP : MUSIC_NORMAL);
if (getGameId() != GID_IHNM_DEMO)
_music->play(_music->_songTable[_scene->getCurrentMusicTrack()], _scene->getCurrentMusicRepeat() ? MUSIC_LOOP : MUSIC_NORMAL);
else
_music->play(3, MUSIC_LOOP);
}
// Inset scene