aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-04-09 04:20:17 +0000
committerPaweł Kołodziejski2004-04-09 04:20:17 +0000
commit5f89f5b2b756891d5f7a032b84a6bd89333056aa (patch)
tree7124b9ce54f753d70502458d47975f35a762378a
parent6a175f294cec3adc954d2a15dbed9151c12fa266 (diff)
downloadscummvm-rg350-5f89f5b2b756891d5f7a032b84a6bd89333056aa.tar.gz
scummvm-rg350-5f89f5b2b756891d5f7a032b84a6bd89333056aa.tar.bz2
scummvm-rg350-5f89f5b2b756891d5f7a032b84a6bd89333056aa.zip
correction for stoping sequence
svn-id: r13511
-rw-r--r--scumm/imuse_digi/dimuse_music.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/scumm/imuse_digi/dimuse_music.cpp b/scumm/imuse_digi/dimuse_music.cpp
index e6aa7e0c3a..da21f21301 100644
--- a/scumm/imuse_digi/dimuse_music.cpp
+++ b/scumm/imuse_digi/dimuse_music.cpp
@@ -31,18 +31,16 @@ namespace Scumm {
#define COMI_SEQ_OFFSET (COMI_STATE_OFFSET + 94)
void IMuseDigital::refreshScripts() {
+ Common::StackLock lock(_mutex, "IMuseDigital::refreshScripts()");
bool found = false;
- {
- Common::StackLock lock(_mutex, "IMuseDigital::refreshScripts()");
- for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) {
- if ((_track[l].used) && (_track[l].volGroupId == IMUSE_VOLGRP_MUSIC) && (!_track[l].volFadeUsed)) {
- found = true;
- }
+ for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) {
+ if ((_track[l].used) && (_track[l].volGroupId == IMUSE_VOLGRP_MUSIC) && (!_track[l].volFadeUsed)) {
+ found = true;
}
}
if ((!found) && (_curMusicSeq != 0)) {
- parseScriptCmds(0x1001, 0, 0, 0, 0, 0, 0, 0);
+ parseScriptCmds(0x2000, 0, 0, 0, 0, 0, 0, 0);
}
}