From 416b9b2ab42f681dce67ef0ab91725a47b8cdc35 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Mon, 21 Jun 2004 05:31:51 +0000 Subject: fixed status of sounds for stream2 svn-id: r13991 --- scumm/imuse_digi/dimuse_script.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scumm/imuse_digi') 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; + } } } -- cgit v1.2.3