diff options
author | Max Horn | 2003-05-26 20:48:10 +0000 |
---|---|---|
committer | Max Horn | 2003-05-26 20:48:10 +0000 |
commit | b6a424a1df06810a3bb0a3ed7601c9b5d8dbd834 (patch) | |
tree | 327ec275dbb3dfd4d5a51ed8e6d7733eb869f8a1 | |
parent | ebedd3b41c2751ee084247fd04785216fcd37e4f (diff) | |
download | scummvm-rg350-b6a424a1df06810a3bb0a3ed7601c9b5d8dbd834.tar.gz scummvm-rg350-b6a424a1df06810a3bb0a3ed7601c9b5d8dbd834.tar.bz2 scummvm-rg350-b6a424a1df06810a3bb0a3ed7601c9b5d8dbd834.zip |
scumm vars are 32 bit, not 16
svn-id: r8020
-rw-r--r-- | scumm/debugger.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index f8262846f4..8409b8da09 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -270,7 +270,7 @@ bool ScummDebugger::RunCommand(const char *inputOrig) { Debug_Printf("You must access this array as %s[element]\n", param[0]); } else { int element = atoi(chr+1); - int16 *var = *(int16 **)_dvars[i].variable; + int32 *var = *(int32 **)_dvars[i].variable; if (element > _dvars[i].optional) { Debug_Printf("%s is out of range (array is %d elements big)\n", param[0], _dvars[i].optional); } else { @@ -600,14 +600,14 @@ bool ScummDebugger::Cmd_PrintObjects(int argc, const char **argv) { int i; ObjectData *o; Debug_Printf("Objects in current room\n"); - Debug_Printf("+---------------------------------+\n"); - Debug_Printf("|num | x | y |width|height|state|\n"); - Debug_Printf("+----+----+----+-----+------+-----+\n"); + Debug_Printf("+---------------------------------+--+\n"); + Debug_Printf("|num | x | y |width|height|state|fl|\n"); + Debug_Printf("+----+----+----+-----+------+-----+--+\n"); for (i = 1; (i < _s->_numLocalObjects) && (_s->_objs[i].obj_nr != 0) ; i++) { o = &(_s->_objs[i]); - Debug_Printf("|%4d|%4d|%4d|%5d|%6d|%5d|\n", - o->obj_nr, o->x_pos, o->y_pos, o->width, o->height, o->state); + Debug_Printf("|%4d|%4d|%4d|%5d|%6d|%5d|%2d|\n", + o->obj_nr, o->x_pos, o->y_pos, o->width, o->height, o->state, o->fl_object_index); } Debug_Printf("\n"); return true; |