diff options
author | Max Horn | 2003-09-11 14:11:45 +0000 |
---|---|---|
committer | Max Horn | 2003-09-11 14:11:45 +0000 |
commit | ce7e59e1ae9685aa0b106e20ff7098cbd941829c (patch) | |
tree | f6a962e12b3870488ce7c02f3750d0fc8dd22b0b /scumm | |
parent | 6c4d6889f549dd09ef8b1e5faba59e77f5676991 (diff) | |
download | scummvm-rg350-ce7e59e1ae9685aa0b106e20ff7098cbd941829c.tar.gz scummvm-rg350-ce7e59e1ae9685aa0b106e20ff7098cbd941829c.tar.bz2 scummvm-rg350-ce7e59e1ae9685aa0b106e20ff7098cbd941829c.zip |
V2 walk matrix support
svn-id: r10176
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/debugger.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 012dfbfae5..8520026c5a 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -810,16 +810,21 @@ bool ScummDebugger::Cmd_PrintBox(int argc, const char **argv) { bool ScummDebugger::Cmd_PrintBoxMatrix(int argc, const char **argv) { byte *boxm = _s->getBoxMatrixBaseAddr(); int num = _s->getNumBoxes(); - int i; + int i, j; Debug_Printf("Walk matrix:\n"); for (i = 0; i < num; i++) { Debug_Printf("%d: ", i); - while (*boxm != 0xFF) { - Debug_Printf("[%d] ", *boxm); + if (_s->_version <= 2) { + for (j = 0; j < num; j++) + Debug_Printf("[%d] ", *boxm++); + } else { + while (*boxm != 0xFF) { + Debug_Printf("[%d] ", *boxm); + boxm++; + } boxm++; } - boxm++; Debug_Printf("\n"); } return true; |