diff options
author | Paweł Kołodziejski | 2004-06-21 05:31:51 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-06-21 05:31:51 +0000 |
commit | 416b9b2ab42f681dce67ef0ab91725a47b8cdc35 (patch) | |
tree | 9d20d99ca2b10496c26f202bc2651ca6e5fc9560 /scumm/imuse_digi | |
parent | fce2762f2906e332c9cc3922642174c4931afa8b (diff) | |
download | scummvm-rg350-416b9b2ab42f681dce67ef0ab91725a47b8cdc35.tar.gz scummvm-rg350-416b9b2ab42f681dce67ef0ab91725a47b8cdc35.tar.bz2 scummvm-rg350-416b9b2ab42f681dce67ef0ab91725a47b8cdc35.zip |
fixed status of sounds for stream2
svn-id: r13991
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r-- | scumm/imuse_digi/dimuse_script.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scumm/imuse_digi/dimuse_script.cpp b/scumm/imuse_digi/dimuse_script.cpp index 64a2e384e4..ebe3d1ae84 100644 --- a/scumm/imuse_digi/dimuse_script.cpp +++ b/scumm/imuse_digi/dimuse_script.cpp @@ -272,8 +272,11 @@ int IMuseDigital::getSoundStatus(int sound) const { debug(5, "IMuseDigital::getSoundStatus(%d)", sound); for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) { Track *track = _track[l]; - if (track->used && (track->soundId == sound)) { - return 1; + if (track->soundId == sound) { + if ((track->stream2 && track->handle.isActive()) || + (track->stream && track->used)) { + return 1; + } } } |