[Scummvm-cvs-logs] SF.net SVN: scummvm:[51230] scummvm/trunk/engines/m4/scene.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Jul 24 03:07:05 CEST 2010
Revision: 51230
http://scummvm.svn.sourceforge.net/scummvm/?rev=51230&view=rev
Author: dreammaster
Date: 2010-07-24 01:07:04 +0000 (Sat, 24 Jul 2010)
Log Message:
-----------
M4: Enhanced the show_codes debug command to also show a scene's walking points
Modified Paths:
--------------
scummvm/trunk/engines/m4/scene.cpp
Modified: scummvm/trunk/engines/m4/scene.cpp
===================================================================
--- scummvm/trunk/engines/m4/scene.cpp 2010-07-23 23:43:59 UTC (rev 51229)
+++ scummvm/trunk/engines/m4/scene.cpp 2010-07-24 01:07:04 UTC (rev 51230)
@@ -154,8 +154,21 @@
colors[255 * 4 + 2] = 255;
_vm->_palette->setPalette(colors, 0, 256);
} else {
- // For MADS, simply copy the walk data to the background, in whatever current palette is active
+ // MADS handling
+
+ // copy the walk data to the background, in whatever current palette is active
_walkSurface->copyTo(_backgroundSurface);
+
+ // Show all the scene's walk nodes
+ SceneNodeList &nodeList = _madsVm->scene()->getSceneResources()._nodes;
+ _backgroundSurface->setColour(_madsVm->_palette->WHITE);
+ for (uint i = 0; i < nodeList.size() - 2; ++i) {
+ // Draw a little cross at the node's position
+ _backgroundSurface->hLine(nodeList[i].pt.x - 2, nodeList[i].pt.x + 2, nodeList[i].pt.y);
+ _backgroundSurface->vLine(nodeList[i].pt.x, nodeList[i].pt.y - 2, nodeList[i].pt.y + 2);
+ }
+
+ ((MadsScene *)this)->_spriteSlots.fullRefresh();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list