aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJamieson Christian2003-05-17 19:07:45 +0000
committerJamieson Christian2003-05-17 19:07:45 +0000
commit93825ff9481ca17ef6735de966578c8462ff76a5 (patch)
tree39b92940e3fb79242ca495b013afe2e5bfc3024f /scumm
parentfcc11d19fa22a8c559d53c3d1e5b9b63b7be975c (diff)
downloadscummvm-rg350-93825ff9481ca17ef6735de966578c8462ff76a5.tar.gz
scummvm-rg350-93825ff9481ca17ef6735de966578c8462ff76a5.tar.bz2
scummvm-rg350-93825ff9481ca17ef6735de966578c8462ff76a5.zip
Fixed program change msgs being sent under Adlib
svn-id: r7615
Diffstat (limited to 'scumm')
-rw-r--r--scumm/imuse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp
index d27ec891fd..2662b6c039 100644
--- a/scumm/imuse.cpp
+++ b/scumm/imuse.cpp
@@ -2127,7 +2127,8 @@ void Player::parse_sysex(byte *p, uint len) {
// 0 is a valid program number. MI2 tests show that in such
// cases, a regular program change message always seems to follow
// anyway.
- part->_instrument.program ((p[15] & 0x0F) << 4 | (p[16] & 0x0F), _mt32emulate);
+ if (_isGM)
+ part->_instrument.program ((p[15] & 0x0F) << 4 | (p[16] & 0x0F), _mt32emulate);
part->sendAll();
}
}