aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-07-06 10:39:02 +0000
committerMax Horn2003-07-06 10:39:02 +0000
commit98027c207225fc2de1e400b88b325943e8278522 (patch)
treeb11ad5e8f393649b12f6382948e6c847c8fbc695 /scumm
parentf12d23f84615c0c29f2cf4e57d6e883d0d533819 (diff)
downloadscummvm-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
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp8
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();
}
}