Fixed the debug box tool

svn-id: r3708
This commit is contained in:
Vincent Hamm 2002-03-09 12:32:19 +00:00
parent 393729a5f2
commit 81c2211a9e

View file

@ -116,15 +116,16 @@ bool ScummDebugger::do_command() {
num = _s->getNumBoxes(); num = _s->getNumBoxes();
printf("Walk matrix:\n"); printf("Walk matrix:\n");
while (*boxm != 0xFF) { for (i=0;i<num;i++)
printf("%d ", *boxm); {
i++; *boxm++; while(*boxm != 0xFF) {
if (i >= num) {i = 0; rows++; printf("\n");} printf ("[%d] ",*boxm);
boxm++;
}
boxm++;
printf("\n");
} }
if (rows < num)
printf("\nERROR: Box Matrix invalid, missing or incomplete: %d row(s)", num - rows);
printf("\nWalk boxes:\n"); printf("\nWalk boxes:\n");
for (i=0; i<num; i++) { for (i=0; i<num; i++) {
BoxTest(i); BoxTest(i);