aboutsummaryrefslogtreecommitdiff
path: root/scumm/debugger.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-14 18:16:45 +0000
committerMax Horn2003-09-14 18:16:45 +0000
commit6512592d0f0be9afcc0f3aa30b1b505490ebea54 (patch)
tree59eb579d38946c02e2d579de1c6d106ecacf4114 /scumm/debugger.cpp
parentfd7727e9d2a5414e021439eb88d30ca687ac691e (diff)
downloadscummvm-rg350-6512592d0f0be9afcc0f3aa30b1b505490ebea54.tar.gz
scummvm-rg350-6512592d0f0be9afcc0f3aa30b1b505490ebea54.tar.bz2
scummvm-rg350-6512592d0f0be9afcc0f3aa30b1b505490ebea54.zip
moved Actor x/y to _pos.x/_pos.y -> this makes it much easier to grep for access of the actor position
svn-id: r10253
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r--scumm/debugger.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index d225ba13a6..700d285d04 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -620,12 +620,12 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) {
a->ignoreBoxes = (value > 0);
Debug_Printf("Actor[%d].ignoreBoxes = %d\n", actnum, a->ignoreBoxes);
} else if (!strcmp(argv[2], "x")) {
- a->putActor(value, a->y, a->room);
- Debug_Printf("Actor[%d].x = %d\n", actnum, a->x);
+ a->putActor(value, a->_pos.y, a->room);
+ Debug_Printf("Actor[%d].x = %d\n", actnum, a->_pos.x);
_s->_fullRedraw = 1;
} else if (!strcmp(argv[2], "y")) {
- a->putActor(a->x, value, a->room);
- Debug_Printf("Actor[%d].y = %d\n", actnum, a->y);
+ a->putActor(a->_pos.x, value, a->room);
+ Debug_Printf("Actor[%d].y = %d\n", actnum, a->_pos.y);
_s->_fullRedraw = 1;
} else if (!strcmp(argv[2], "elevation")) {
a->elevation = value;
@@ -659,7 +659,7 @@ bool ScummDebugger::Cmd_PrintActor(int argc, const char **argv) {
a = &_s->_actors[i];
if (a->visible)
Debug_Printf("|%2d|%4d|%4d|%4d|%4d|%3d|%5d|%3d|%3d|%3d|%5d|%5d|%3d|$%02x|\n",
- a->number, a->room, a->x, a->y, a->elevation, a->costume,
+ a->number, a->room, a->_pos.x, a->_pos.y, a->elevation, a->costume,
a->width, a->walkbox, a->moving, a->forceClip, a->frame,
a->scalex, a->getFacing(), int(_s->_classData[a->number]&0xFF));
}