aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-10-08 01:07:44 +0000
committerTravis Howell2004-10-08 01:07:44 +0000
commit39fad0387be5fb4bd061718ce6cdd99d62ca086e (patch)
tree5a37c2a2c5b12f3aee39c6625bcd882a72c99320 /scumm
parent9fdd43e25ee07123d8e2a245ababb14eb50c134e (diff)
downloadscummvm-rg350-39fad0387be5fb4bd061718ce6cdd99d62ca086e.tar.gz
scummvm-rg350-39fad0387be5fb4bd061718ce6cdd99d62ca086e.tar.bz2
scummvm-rg350-39fad0387be5fb4bd061718ce6cdd99d62ca086e.zip
Unfortunately still not perfect.
svn-id: r15460
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script.cpp3
-rw-r--r--scumm/sound.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index f9dae2e90d..d015d10c5e 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -695,7 +695,8 @@ void ScummEngine::stopObjectCode() {
ss->cutsceneOverride = 0;
}
}
- nukeArrays(ss->number);
+ // FIXME Sometimes nukes the incorrect array in HE games
+ // nukeArrays(ss->number);
ss->number = 0;
ss->status = ssDead;
_currentScript = 0xFF;
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 52edc56d46..b9896a63eb 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -767,6 +767,8 @@ int Sound::isSoundRunning(int sound) const {
return (_musicChannelHandle.isActive()) ? 1 : 0;
else if (_vm->_imuse)
return (_vm->_imuse->getSoundStatus(sound));
+ } else if (sound > _vm->_numSounds) {
+ return _vm->_mixer->isSoundIDActive(sound);
}
}