[Scummvm-cvs-logs] SF.net SVN: scummvm: [30534] scummvm/branches/branch-0-11-0/engines/lure/ hotspots.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Thu Jan 17 12:44:42 CET 2008
Revision: 30534
http://scummvm.svn.sourceforge.net/scummvm/?rev=30534&view=rev
Author: dreammaster
Date: 2008-01-17 03:44:41 -0800 (Thu, 17 Jan 2008)
Log Message:
-----------
Backport of bugfix for logging the description of actions being done
Modified Paths:
--------------
scummvm/branches/branch-0-11-0/engines/lure/hotspots.cpp
Modified: scummvm/branches/branch-0-11-0/engines/lure/hotspots.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/engines/lure/hotspots.cpp 2008-01-17 11:36:54 UTC (rev 30533)
+++ scummvm/branches/branch-0-11-0/engines/lure/hotspots.cpp 2008-01-17 11:44:41 UTC (rev 30534)
@@ -1253,7 +1253,7 @@
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));
+ _hotspotId, (int)action, (action > EXAMINE) ? NULL : stringList.getString((int)action));
// Set the ACTIVE_HOTSPOT_ID and USE_HOTSPOT_ID fields
if (hotspot != NULL) {
@@ -1312,7 +1312,7 @@
(this->*actionProcList[action])(hotspot);
debugC(ERROR_DETAILED, kLureDebugHotspots, "Action charId=%xh Action=%d/%s Complete",
- _hotspotId, (int)action, stringList.getString((int)action));
+ _hotspotId, (int)action, (action > EXAMINE) ? NULL : stringList.getString((int)action));
}
void Hotspot::doNothing(HotspotData *hotspot) {
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