From abd20d59fab7cdcfaa3998484c91ff8927ce091c Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 19 Feb 2007 09:46:45 +0000 Subject: Move SCUMM version checks for settings up monst.er.sou file, to higher level. svn-id: r25716 --- engines/scumm/scumm.cpp | 4 ++-- engines/scumm/sound.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index c3e7d9ef45..04ba1d27a8 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1088,7 +1088,7 @@ int ScummEngine::init() { _imuse->setBase(_res->address[rtSound]); } - if (_game.version >= 5) + if (_game.version >= 5 && _game.version <= 7) _sound->setupSound(); updateSoundSettings(); @@ -2150,7 +2150,7 @@ void ScummEngine::restart() { } // Reinit sound engine - if (_game.version >= 5) + if (_game.version >= 5 && _game.version <= 7) _sound->setupSound(); // Re-run bootscript diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp index ca9736bf57..fd94ea9b20 100644 --- a/engines/scumm/sound.cpp +++ b/engines/scumm/sound.cpp @@ -934,7 +934,7 @@ BaseScummFile *Sound::openSfxFile() { if (file->open(tmp) && _vm->_game.heversion <= 73) file->setEnc(0x69); _soundMode = kVOCMode; - } else if (_vm->_game.version >= 5 && _vm->_game.version <= 7) { + } else { for (uint j = 0; j < 2 && !file->isOpen(); ++j) { for (int i = 0; extensions[i].ext; ++i) { tmp = basename[j] + extensions[i].ext; -- cgit v1.2.3