[Scummvm-cvs-logs] CVS: scummvm debug.cpp,1.32,1.33

Max Horn fingolfin at users.sourceforge.net
Thu Jul 25 14:16:12 CEST 2002


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

Modified Files:
	debug.cpp 
Log Message:
output box flags, too; ignore annoying warning

Index: debug.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/debug.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- debug.cpp	16 Jul 2002 21:03:14 -0000	1.32
+++ debug.cpp	25 Jul 2002 21:15:55 -0000	1.33
@@ -112,6 +112,7 @@
 			int num, i = 0;
 			BoxCoords box;
 			byte *boxm = _s->getBoxMatrixBaseAddr();
+			int flags;
 			num = _s->getNumBoxes();
 
 			printf("Walk matrix:\n");
@@ -126,11 +127,12 @@
 
 			printf("\nWalk boxes:\n");
 			for (i = 0; i < num; i++) {
-				warning("BoxTest currently unimplemented in new graphics code\n");
+				//warning("BoxTest currently unimplemented in new graphics code\n");
 				/*BoxTest(i); */
 				_s->getBoxCoordinates(i, &box);
-				printf("%d: [%d x %d] [%d x %d] [%d x %d] [%d x %d]\n", i,
-							 box.ul.x, box.ul.y, box.ll.x, box.ll.y, box.ur.x, box.ur.y, box.lr.x, box.lr.y);
+				flags = _s->getBoxFlags(i);
+				printf("%d: [%d x %d] [%d x %d] [%d x %d] [%d x %d], flags=0x%02x\n", i,
+							 box.ul.x, box.ul.y, box.ll.x, box.ll.y, box.ur.x, box.ur.y, box.lr.x, box.lr.y), flags;
 			}
 		}
 		return true;





More information about the Scummvm-git-logs mailing list