Always try and load the associated digital track if the requested MIDI track couldn't be found

svn-id: r47631
This commit is contained in:
Filippos Karapetis 2010-01-28 08:23:40 +00:00
parent 1e6123ce89
commit 6fd8f7c015

View File

@ -172,7 +172,9 @@ void SciMusic::soundInitSnd(MusicEntry *pSnd) {
// If MIDI device is selected but there is no digital track in sound resource
// try to use adlib's digital sample if possible
if (_bMultiMidi && (!track || track->digitalChannelNr == -1)) {
// Also, if the track couldn't be found, load the digital track, as some games
// depend on this (e.g. the Longbow demo)
if (!track || (_bMultiMidi && track->digitalChannelNr == -1)) {
SoundResource::Track *digital = pSnd->soundRes->getDigitalTrack();
if (digital)
track = digital;