[Scummvm-cvs-logs] SF.net SVN: scummvm: [25622] scummvm/trunk/engines/lure/debugger.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Fri Feb 16 05:50:43 CET 2007


Revision: 25622
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25622&view=rev
Author:   dreammaster
Date:     2007-02-15 20:50:42 -0800 (Thu, 15 Feb 2007)

Log Message:
-----------
Added sub-option to hotspot command to allow the activation or deactivation of hotspots

Modified Paths:
--------------
    scummvm/trunk/engines/lure/debugger.cpp

Modified: scummvm/trunk/engines/lure/debugger.cpp
===================================================================
--- scummvm/trunk/engines/lure/debugger.cpp	2007-02-16 04:49:15 UTC (rev 25621)
+++ scummvm/trunk/engines/lure/debugger.cpp	2007-02-16 04:50:42 UTC (rev 25622)
@@ -275,7 +275,7 @@
 	Hotspot *h;
 
 	if (argc < 2) {
-		DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions']\n");
+		DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions' | 'activate' | 'deactivate']\n");
 		return true;
 	} 
 	hs = res.getHotspot(strToInt(argv[1]));
@@ -323,6 +323,18 @@
 					DebugPrintf("%s - Script %xh\n", actionStr, offset);
 				}
 			}
+	} else if (strcmp(argv[2], "activate") == 0) {
+		// Activate the hotspot
+		res.activateHotspot(hs->hotspotId);
+		hs->flags &= !HOTSPOTFLAG_20;
+		DebugPrintf("Activated\n");
+
+	} else if (strcmp(argv[2], "deactivate") == 0) {
+		// Activate the hotspot
+		res.deactivateHotspot(hs->hotspotId);
+		hs->flags |= HOTSPOTFLAG_20;
+		DebugPrintf("Deactivated\n");
+
 	} else {
 		if (!h) 
 			DebugPrintf("The specified hotspot is not currently active\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