diff options
| author | Paul Gilbert | 2011-04-30 16:40:01 +1000 |
|---|---|---|
| committer | Paul Gilbert | 2011-04-30 16:40:01 +1000 |
| commit | 9fc1ed2c6059e68ebf857a646b767de7811e0f00 (patch) | |
| tree | 3aa24295df8d17283eef3cfa06650f8e3ea1bd9b /engines/tsage | |
| parent | e5698d123d8c40aa43ca095d0d191b4c8af786fa (diff) | |
| download | scummvm-rg350-9fc1ed2c6059e68ebf857a646b767de7811e0f00.tar.gz scummvm-rg350-9fc1ed2c6059e68ebf857a646b767de7811e0f00.tar.bz2 scummvm-rg350-9fc1ed2c6059e68ebf857a646b767de7811e0f00.zip | |
TSAGE: Added a print out of region details to the walk_regions debugger command
Diffstat (limited to 'engines/tsage')
| -rw-r--r-- | engines/tsage/debugger.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/tsage/debugger.cpp b/engines/tsage/debugger.cpp index c50a4f5c9c..eecc844292 100644 --- a/engines/tsage/debugger.cpp +++ b/engines/tsage/debugger.cpp @@ -92,6 +92,8 @@ bool Debugger::Cmd_WalkRegions(int argc, const char **argv) { Graphics::Surface destSurface = _globals->_sceneManager._scene->_backSurface.lockSurface(); // Loop through drawing each walk region in a different color to the background surface + Common::String regionsDesc; + for (uint regionIndex = 0; regionIndex < _globals->_walkRegions._regionList.size(); ++regionIndex, ++color) { WalkRegion &wr = _globals->_walkRegions._regionList[regionIndex]; @@ -102,6 +104,9 @@ bool Debugger::Cmd_WalkRegions(int argc, const char **argv) { destSurface.hLine(sliceSet.items[idx].xs - _globals->_sceneOffset.x, yp, sliceSet.items[idx].xe - _globals->_sceneOffset.x, color); } + + regionsDesc += Common::String::format("Region #%d d bounds=%d,%d,%d,%d\n", + regionIndex, wr._bounds.left, wr._bounds.top, wr._bounds.right, wr._bounds.bottom); } // Release the surface @@ -110,6 +115,9 @@ bool Debugger::Cmd_WalkRegions(int argc, const char **argv) { // Mark the scene as requiring a full redraw _globals->_paneRefreshFlag[0] = 2; + DebugPrintf("Total regions = %d\n", _globals->_walkRegions._regionList.size()); + DebugPrintf("%s\n", regionsDesc.c_str()); + return false; } @@ -383,7 +391,7 @@ bool Debugger::Cmd_MoveObject(int argc, const char **argv) { * Give a specified item to the player */ bool Debugger::Cmd_Item(int argc, const char **argv) { - RING_INVENTORY._infoDisk._sceneNumber = 1; + RING_INVENTORY._stasisBox._sceneNumber = 1; return true; } |
