diff options
author | Max Horn | 2004-01-05 16:19:14 +0000 |
---|---|---|
committer | Max Horn | 2004-01-05 16:19:14 +0000 |
commit | a469559d134822121b2268aebc9ca733985c2146 (patch) | |
tree | ad2e3f3b77092292db301cec9a20e7509b5064cf /scumm/debugger.cpp | |
parent | 6a7cf6d6cfb4be5d212a8d27304e11820125679e (diff) | |
download | scummvm-rg350-a469559d134822121b2268aebc9ca733985c2146.tar.gz scummvm-rg350-a469559d134822121b2268aebc9ca733985c2146.tar.bz2 scummvm-rg350-a469559d134822121b2268aebc9ca733985c2146.zip |
added Actor::getElevation and Actor::setElevation; cleaned up costume API a bit; some minor cleanup/tweaks
svn-id: r12160
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r-- | scumm/debugger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 01d2e1ad81..6b65a9a36d 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -377,8 +377,8 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) { DebugPrintf("Actor[%d].y = %d\n", actnum, a->_pos.y); _vm->_fullRedraw = 1; } else if (!strcmp(argv[2], "elevation")) { - a->elevation = value; - DebugPrintf("Actor[%d].elevation = %d\n", actnum, a->elevation); + a->setElevation(value); + DebugPrintf("Actor[%d].elevation = %d\n", actnum, a->getElevation()); _vm->_fullRedraw = 1; } else if (!strcmp(argv[2], "costume")) { if (value >= _vm->res.num[rtCostume]) @@ -408,7 +408,7 @@ bool ScummDebugger::Cmd_PrintActor(int argc, const char **argv) { a = &_vm->_actors[i]; if (a->visible) DebugPrintf("|%2d|%4d|%4d|%4d|%4d|%3d|%5d|%3d|%3d|%3d|%5d|%5d|%3d|$%02x|\n", - a->number, a->room, a->_pos.x, a->_pos.y, a->elevation, a->costume, + a->number, a->room, a->_pos.x, a->_pos.y, a->getElevation(), a->costume, a->width, a->walkbox, a->moving, a->forceClip, a->frame, a->scalex, a->getFacing(), int(_vm->_classData[a->number]&0xFF)); } |