aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-07-25 21:15:55 +0000
committerMax Horn2002-07-25 21:15:55 +0000
commitdcdba20a69e84189e13f303b8c3996149a0997c6 (patch)
tree13bff2da3da935b4d6f91d7d1fbaa3197199340e
parent5b438bd24819b28f47b1d52e10f3ee7126cf91bf (diff)
downloadscummvm-rg350-dcdba20a69e84189e13f303b8c3996149a0997c6.tar.gz
scummvm-rg350-dcdba20a69e84189e13f303b8c3996149a0997c6.tar.bz2
scummvm-rg350-dcdba20a69e84189e13f303b8c3996149a0997c6.zip
output box flags, too; ignore annoying warning
svn-id: r4630
-rw-r--r--debug.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/debug.cpp b/debug.cpp
index 4fe0d6560c..37cc9c609c 100644
--- a/debug.cpp
+++ b/debug.cpp
@@ -112,6 +112,7 @@ bool ScummDebugger::do_command()
int num, i = 0;
BoxCoords box;
byte *boxm = _s->getBoxMatrixBaseAddr();
+ int flags;
num = _s->getNumBoxes();
printf("Walk matrix:\n");
@@ -126,11 +127,12 @@ bool ScummDebugger::do_command()
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;