[Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,1.9,1.10

Jean-Yves Simon lethalwp at users.sourceforge.net
Sun Sep 8 22:04:03 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv3271/scummvm/scumm

Modified Files:
	imuse.cpp 
Log Message:
patch attempts to fix the MI2 music bug pointed out in bug report #551028

Index: imuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- imuse.cpp	8 Sep 2002 01:08:12 -0000	1.9
+++ imuse.cpp	9 Sep 2002 05:03:55 -0000	1.10
@@ -2061,6 +2061,16 @@
 	len -= 2;
 
 	switch (code = *p++) {
+	case 0:												/* part on/off? */
+		// This seems to do the right thing for Monkey 2, at least.
+		a = *p++ & 0x0F;
+		part = get_part(a);
+		if (part) {
+			debug(2, "%d => turning %s part %d", p[1], (p[1] == 2) ? "OFF" : "ON", a);
+			part->set_onoff(p[1] != 2);
+		}
+		break;
+		
 	case 16:											/* set instrument in part */
 		a = *p++ & 0x0F;
 		if (_se->_hardware_type != *p++)





More information about the Scummvm-git-logs mailing list