[Scummvm-cvs-logs] SF.net SVN: scummvm:[36096] scummvm/branches/branch-0-13-0/engines/lure/ debugger.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Tue Jan 27 11:27:53 CET 2009
Revision: 36096
http://scummvm.svn.sourceforge.net/scummvm/?rev=36096&view=rev
Author: dreammaster
Date: 2009-01-27 10:27:53 +0000 (Tue, 27 Jan 2009)
Log Message:
-----------
Backport of debug subcommand to enable a hotspot's position to be changed
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/engines/lure/debugger.cpp
Modified: scummvm/branches/branch-0-13-0/engines/lure/debugger.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/engines/lure/debugger.cpp 2009-01-27 10:27:07 UTC (rev 36095)
+++ scummvm/branches/branch-0-13-0/engines/lure/debugger.cpp 2009-01-27 10:27:53 UTC (rev 36096)
@@ -291,7 +291,7 @@
Hotspot *h;
if (argc < 2) {
- DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions' | 'activate' | 'deactivate']\n");
+ DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions' | 'activate' | 'deactivate' | 'setpos']\n");
return true;
}
hs = res.getHotspot(strToInt(argv[1]));
@@ -372,6 +372,14 @@
pData.upFrame, pData.downFrame, pData.leftFrame, pData.rightFrame);
DebugPrintf("Current frame = %d of %d\n", h->frameNumber(), h->numFrames());
}
+ else if (strcmp(argv[2], "setpos") == 0) {
+ // Set the hotspot position
+ if (argc >= 5)
+ h->setPosition(strToInt(argv[3]), strToInt(argv[4]));
+ if (argc >= 6)
+ h->setRoomNumber(strToInt(argv[5]));
+ DebugPrintf("Done.\n");
+ }
}
DebugPrintf("\n");
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