aboutsummaryrefslogtreecommitdiff
path: root/debug.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-03-09 12:32:19 +0000
committerVincent Hamm2002-03-09 12:32:19 +0000
commit81c2211a9e0cd693c6d663f85ce1bc72aaabc308 (patch)
treed909bf2f5db401da948e539bf315cd8107655d21 /debug.cpp
parent393729a5f2772fcb53741e0b727c38f98b6212dc (diff)
downloadscummvm-rg350-81c2211a9e0cd693c6d663f85ce1bc72aaabc308.tar.gz
scummvm-rg350-81c2211a9e0cd693c6d663f85ce1bc72aaabc308.tar.bz2
scummvm-rg350-81c2211a9e0cd693c6d663f85ce1bc72aaabc308.zip
Fixed the debug box tool
svn-id: r3708
Diffstat (limited to 'debug.cpp')
-rw-r--r--debug.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/debug.cpp b/debug.cpp
index 4f6ea160cc..e22a33af53 100644
--- a/debug.cpp
+++ b/debug.cpp
@@ -116,15 +116,16 @@ bool ScummDebugger::do_command() {
num = _s->getNumBoxes();
printf("Walk matrix:\n");
- while (*boxm != 0xFF) {
- printf("%d ", *boxm);
- i++; *boxm++;
- if (i >= num) {i = 0; rows++; printf("\n");}
+ for (i=0;i<num;i++)
+ {
+ while(*boxm != 0xFF) {
+ 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");
for (i=0; i<num; i++) {
BoxTest(i);