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

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Dec 9 06:59:02 CET 2007


Revision: 29773
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29773&view=rev
Author:   dreammaster
Date:     2007-12-08 21:59:01 -0800 (Sat, 08 Dec 2007)

Log Message:
-----------
Added extra debug statements

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp
    scummvm/trunk/engines/lure/res.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-12-09 05:57:08 UTC (rev 29772)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-12-09 05:59:01 UTC (rev 29773)
@@ -754,6 +754,8 @@
 }
 
 void Hotspot::showMessage(uint16 messageId, uint16 destCharacterId) {
+	debugC(ERROR_DETAILED, kLureDebugStrings, "Hotspot::showMessage messageId=%xh srcChar=%xh, destChar=%xh",
+		messageId, _hotspotId, destCharacterId);
 	Resources &res = Resources::getReference();
 	MemoryBlock *data = res.messagesData();
 	Hotspot *hotspot;
@@ -775,7 +777,9 @@
 	}
 
 	// default response if a specific response not found
+
 	if (idVal == 0xffff) idVal = 0x8c4; 
+	debugC(ERROR_DETAILED, kLureDebugStrings, "Hotspot::showMessage idVal=%xh", idVal);
 
 	if (idVal == 0x76) {
 		// Special code id for showing the puzzled talk bubble
@@ -1199,6 +1203,10 @@
 }
 
 void Hotspot::doAction(Action action, HotspotData *hotspot) {
+	StringList &stringList = Resources::getReference().stringList();
+	debugC(ERROR_INTERMEDIATE, kLureDebugHotspots,  "Action charId=%xh Action=%d/%s", 
+		_hotspotId, (int)action, stringList.getString((int)action));
+
 	ActionProcPtr actionProcList[NPC_JUMP_ADDRESS + 1] = {
 		&Hotspot::doNothing, 
 		&Hotspot::doGet, 

Modified: scummvm/trunk/engines/lure/res.cpp
===================================================================
--- scummvm/trunk/engines/lure/res.cpp	2007-12-09 05:57:08 UTC (rev 29772)
+++ scummvm/trunk/engines/lure/res.cpp	2007-12-09 05:59:01 UTC (rev 29773)
@@ -462,8 +462,10 @@
 
 uint16 Resources::getHotspotAction(uint16 actionsOffset, Action action) {
 	HotspotActionList *list = _actionsList.getActions(actionsOffset);
-	if (!list) return 0;
-	return list->getActionOffset(action);
+	uint16 offset = (!list) ? 0 : list->getActionOffset(action);
+	debugC(ERROR_DETAILED, kLureDebugHotspots, 
+		"Resources::getHotspotAction actionsOffset=%xh result=%xh", actionsOffset, offset);
+	return offset;
 }
 
 TalkHeaderData *Resources::getTalkHeader(uint16 hotspotId) {


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