[Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.82,1.83

Max Horn fingolfin at users.sourceforge.net
Thu Sep 11 08:33:00 CEST 2003


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

Modified Files:
	debugger.cpp 
Log Message:
V2 walk matrix support

Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- debugger.cpp	11 Sep 2003 10:32:14 -0000	1.82
+++ debugger.cpp	11 Sep 2003 14:11:45 -0000	1.83
@@ -810,16 +810,21 @@
 bool ScummDebugger::Cmd_PrintBoxMatrix(int argc, const char **argv) {
 	byte *boxm = _s->getBoxMatrixBaseAddr();
 	int num = _s->getNumBoxes();
-	int i;
+	int i, j;
 
 	Debug_Printf("Walk matrix:\n");
 	for (i = 0; i < num; i++) {
 		Debug_Printf("%d: ", i);
-		while (*boxm != 0xFF) {
-			Debug_Printf("[%d] ", *boxm);
+		if (_s->_version <= 2) {
+			for (j = 0; j < num; j++)
+				Debug_Printf("[%d] ", *boxm++);
+		} else {
+			while (*boxm != 0xFF) {
+				Debug_Printf("[%d] ", *boxm);
+				boxm++;
+			}
 			boxm++;
 		}
-		boxm++;
 		Debug_Printf("\n");
 	}
 	return true;





More information about the Scummvm-git-logs mailing list