[Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,2.16,2.17

Max Horn fingolfin at users.sourceforge.net
Mon Mar 24 16:29:02 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv25124/scumm

Modified Files:
	imuse.cpp 
Log Message:
Patch #691696: Possible fix for Adlib regression

Index: imuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse.cpp,v
retrieving revision 2.16
retrieving revision 2.17
diff -u -d -r2.16 -r2.17
--- imuse.cpp	23 Mar 2003 13:14:54 -0000	2.16
+++ imuse.cpp	25 Mar 2003 00:28:09 -0000	2.17
@@ -1957,10 +1957,13 @@
 		value = *s++;
 		part = get_part(chan);
 		if (part) {
-			if (_isGM || value >= 32)
-				part->set_program(value);
-			else
-				part->load_global_instrument (value);
+			if (_isGM) {
+				if (value < 128)
+					part->set_program(value);
+			} else {
+				if (value < 32)
+					part->load_global_instrument(value);
+			}
 		}
 		break;
 





More information about the Scummvm-git-logs mailing list