[Scummvm-cvs-logs] CVS: scummvm/simon debug.cpp,1.47,1.48

kirben kirben at users.sourceforge.net
Wed Nov 9 17:43:11 CET 2005


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27997/simon

Modified Files:
	debug.cpp 
Log Message:

More accurate video opcodes output.


Index: debug.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/debug.cpp,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- debug.cpp	10 Nov 2005 00:53:00 -0000	1.47
+++ debug.cpp	10 Nov 2005 01:41:56 -0000	1.48
@@ -176,7 +176,7 @@
 	const char *str, *strn;
 
 	do {
-		if (!(_game & GF_SIMON2)) {
+		if (_game & GF_SIMON1) {
 			opcode = READ_BE_UINT16(src);
 			src += 2;
 		} else {
@@ -209,10 +209,13 @@
 			case 'b':
 				fprintf(_dumpFile, "%d ", *src++);
 				break;
-			case 'd':
-				fprintf(_dumpFile, "%d ", readUint16Wrapper(src));
-				src += 2;
-				break;
+			case 'd': {
+					int16 tmp = (int16)readUint16Wrapper(src);
+					if (tmp < 0) tmp = vc_read_var(-tmp);
+					fprintf(_dumpFile, "%d ", tmp);
+					src += 2;
+					break;
+				}
 			case 'v':
 				fprintf(_dumpFile, "[%d] ", readUint16Wrapper(src));
 				src += 2;





More information about the Scummvm-git-logs mailing list