From 24f5130de24ac7528a911153b7263819a3865888 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 20 Jun 2004 15:58:28 +0000 Subject: better check if track is used svn-id: r13976 --- scumm/imuse_digi/dimuse_script.cpp | 2 +- scumm/imuse_digi/dimuse_track.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scumm/imuse_digi/dimuse_script.cpp b/scumm/imuse_digi/dimuse_script.cpp index c372c9c034..9e4d000d28 100644 --- a/scumm/imuse_digi/dimuse_script.cpp +++ b/scumm/imuse_digi/dimuse_script.cpp @@ -269,7 +269,7 @@ 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->soundId == sound) && track->handle.isActive()) { + if (track->used && (track->soundId == sound)) { return 1; } } diff --git a/scumm/imuse_digi/dimuse_track.cpp b/scumm/imuse_digi/dimuse_track.cpp index 612f5105ac..182afeda37 100644 --- a/scumm/imuse_digi/dimuse_track.cpp +++ b/scumm/imuse_digi/dimuse_track.cpp @@ -83,7 +83,7 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, Track *track = _track[l]; for (;;) { flushTracks(); - if (!track->used && !track->handle.isActive()) { + if (!track->used) { track->pan = 64; track->vol = volume * 1000; track->volFadeDest = 0; -- cgit v1.2.3