diff options
author | Max Horn | 2003-07-06 10:39:02 +0000 |
---|---|---|
committer | Max Horn | 2003-07-06 10:39:02 +0000 |
commit | 98027c207225fc2de1e400b88b325943e8278522 (patch) | |
tree | b11ad5e8f393649b12f6382948e6c847c8fbc695 | |
parent | f12d23f84615c0c29f2cf4e57d6e883d0d533819 (diff) | |
download | scummvm-rg350-98027c207225fc2de1e400b88b325943e8278522.tar.gz scummvm-rg350-98027c207225fc2de1e400b88b325943e8278522.tar.bz2 scummvm-rg350-98027c207225fc2de1e400b88b325943e8278522.zip |
the amiga check should be separate since the big FIXME comment does not apply to it at all
svn-id: r8798
-rw-r--r-- | scumm/sound.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 3dbcf7c49c..a610d8acf5 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -464,6 +464,10 @@ void Sound::playSound(int soundID) { } if (_scumm->_gameId == GID_MONKEY_VGA || _scumm->_gameId == GID_MONKEY_EGA) { + // Sound is currently not supported at all in the amiga versions of these games + if (_scumm->_features & GF_AMIGA) + return; + // FIXME: This evil hack works around the fact that in some // places in MonkeyVGA, the music is never explicitly stopped. // Rather it seems that starting a new music is supposed to @@ -471,9 +475,7 @@ void Sound::playSound(int soundID) { // This hack relays on the fact that we currently don't support SFX // in these games, only music. Once we add SFX support, we'll have to // revise it / replace it by a proper fix. - if (_scumm->_features & GF_AMIGA) - return; - else if (ptr) { + if (ptr) { _scumm->_imuse->stop_all_sounds(); } } |