diff options
author | Paul Gilbert | 2016-09-17 10:39:38 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-17 10:39:38 -0400 |
commit | f176624dca18a706b133ec3379293737da5bf8b2 (patch) | |
tree | e03b0f03473f25722848091a1b017ee455b288a8 | |
parent | 94f1c71c08ce060bee1869552f6b219ad83fa477 (diff) | |
download | scummvm-rg350-f176624dca18a706b133ec3379293737da5bf8b2.tar.gz scummvm-rg350-f176624dca18a706b133ec3379293737da5bf8b2.tar.bz2 scummvm-rg350-f176624dca18a706b133ec3379293737da5bf8b2.zip |
XEEN: Fix FX instrument handling
-rw-r--r-- | engines/xeen/music.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp index 36118242d2..c4458328b1 100644 --- a/engines/xeen/music.cpp +++ b/engines/xeen/music.cpp @@ -622,9 +622,11 @@ bool AdlibMusicDriver::fxInjectMidi(const byte *&srcP, byte param) { } bool AdlibMusicDriver::fxPlayInstrument(const byte *&srcP, byte param) { - debugC(3, kDebugSound, "musPlayInstrument %d", param); + byte instrument = *srcP++; + debugC(3, kDebugSound, "fxPlayInstrument %d, %d", param, instrument); + if (!_exclude7 || param != 7) - playInstrument(param, _fxInstrumentPtrs[param]); + playInstrument(param, _fxInstrumentPtrs[instrument]); return false; } |