V2 walk matrix support
svn-id: r10176
This commit is contained in:
parent
6c4d6889f5
commit
ce7e59e1ae
1 changed files with 9 additions and 4 deletions
|
@ -810,16 +810,21 @@ bool ScummDebugger::Cmd_PrintBox(int argc, const char **argv) {
|
||||||
bool ScummDebugger::Cmd_PrintBoxMatrix(int argc, const char **argv) {
|
bool ScummDebugger::Cmd_PrintBoxMatrix(int argc, const char **argv) {
|
||||||
byte *boxm = _s->getBoxMatrixBaseAddr();
|
byte *boxm = _s->getBoxMatrixBaseAddr();
|
||||||
int num = _s->getNumBoxes();
|
int num = _s->getNumBoxes();
|
||||||
int i;
|
int i, j;
|
||||||
|
|
||||||
Debug_Printf("Walk matrix:\n");
|
Debug_Printf("Walk matrix:\n");
|
||||||
for (i = 0; i < num; i++) {
|
for (i = 0; i < num; i++) {
|
||||||
Debug_Printf("%d: ", i);
|
Debug_Printf("%d: ", i);
|
||||||
while (*boxm != 0xFF) {
|
if (_s->_version <= 2) {
|
||||||
Debug_Printf("[%d] ", *boxm);
|
for (j = 0; j < num; j++)
|
||||||
|
Debug_Printf("[%d] ", *boxm++);
|
||||||
|
} else {
|
||||||
|
while (*boxm != 0xFF) {
|
||||||
|
Debug_Printf("[%d] ", *boxm);
|
||||||
|
boxm++;
|
||||||
|
}
|
||||||
boxm++;
|
boxm++;
|
||||||
}
|
}
|
||||||
boxm++;
|
|
||||||
Debug_Printf("\n");
|
Debug_Printf("\n");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue