aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-02-05 15:49:38 +0000
committerMax Horn2006-02-05 15:49:38 +0000
commitbe94482806cc2d26b9d68995341b6905a2cfb7a4 (patch)
tree4c4bc60699f9981d2056d719e10c8a024ebf32a3
parentb621575dbd490677e86dea9717404e41f75a34b0 (diff)
downloadscummvm-rg350-be94482806cc2d26b9d68995341b6905a2cfb7a4.tar.gz
scummvm-rg350-be94482806cc2d26b9d68995341b6905a2cfb7a4.tar.bz2
scummvm-rg350-be94482806cc2d26b9d68995341b6905a2cfb7a4.zip
Class data is 32 bits, and available for objects, too
svn-id: r20408
-rw-r--r--scumm/debugger.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 5cd4b9c3a7..d6013e003d 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -428,18 +428,18 @@ bool ScummDebugger::Cmd_PrintActor(int argc, const char **argv) {
int i;
Actor *a;
- DebugPrintf("+-----------------------------------------------------+\n");
- DebugPrintf("|# | x | y | w |elev|cos|box|mov| zp|frm|scl|dir|cls|\n");
- DebugPrintf("+--+----+----+---+----+---+---+---+---+---+---+---+---+\n");
+ DebugPrintf("+-----------------------------------------------------------+\n");
+ DebugPrintf("|# | x | y | w |elev|cos|box|mov| zp|frm|scl|dir| cls |\n");
+ DebugPrintf("+--+----+----+---+----+---+---+---+---+---+---+---+---------+\n");
for (i = 1; i < _vm->_numActors; i++) {
a = &_vm->_actors[i];
if (a->_visible)
- DebugPrintf("|%2d|%4d|%4d|%3d|%4d|%3d|%3d|%3d|%3d|%3d|%3d|%3d|$%02x|\n",
+ DebugPrintf("|%2d|%4d|%4d|%3d|%4d|%3d|%3d|%3d|%3d|%3d|%3d|%3d|$%08x|\n",
a->_number, a->_pos.x, a->_pos.y, a->_width, a->getElevation(),
a->_costume, a->_walkbox, a->_moving, a->_forceClip, a->_frame,
- a->_scalex, a->getFacing(), int(_vm->_classData[a->_number]&0xFF));
+ a->_scalex, a->getFacing(), _vm->_classData[a->_number]);
}
- DebugPrintf("+-----------------------------------------------------+\n");
+ DebugPrintf("\n");
return true;
}
@@ -447,16 +447,18 @@ bool ScummDebugger::Cmd_PrintObjects(int argc, const char **argv) {
int i;
ObjectData *o;
DebugPrintf("Objects in current room\n");
- DebugPrintf("+---------------------------------+--+\n");
- DebugPrintf("|num | x | y |width|height|state|fl|\n");
- DebugPrintf("+----+----+----+-----+------+-----+--+\n");
+ DebugPrintf("+---------------------------------+------------+\n");
+ DebugPrintf("|num | x | y |width|height|state|fl| cls |\n");
+ DebugPrintf("+----+----+----+-----+------+-----+--+---------+\n");
for (i = 1; (i < _vm->_numLocalObjects) && (_vm->_objs[i].obj_nr != 0) ; i++) {
o = &(_vm->_objs[i]);
- DebugPrintf("|%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);
+ DebugPrintf("|%4d|%4d|%4d|%5d|%6d|%5d|%2d|$%08x|\n",
+ o->obj_nr, o->x_pos, o->y_pos, o->width, o->height, o->state,
+ o->fl_object_index, _vm->_classData[o->obj_nr]);
}
DebugPrintf("\n");
+
return true;
}