diff options
| -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;  }  | 
