[Scummvm-cvs-logs] SF.net SVN: scummvm:[55602] scummvm/trunk/engines/parallaction/dialogue.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Jan 29 08:20:42 CET 2011


Revision: 55602
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55602&view=rev
Author:   peres001
Date:     2011-01-29 07:20:42 +0000 (Sat, 29 Jan 2011)

Log Message:
-----------
PARALLACTION: Improve dialogue debug output.

Print out the current question or the available answers when debug level is 9.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/dialogue.cpp

Modified: scummvm/trunk/engines/parallaction/dialogue.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/dialogue.cpp	2011-01-29 07:20:26 UTC (rev 55601)
+++ scummvm/trunk/engines/parallaction/dialogue.cpp	2011-01-29 07:20:42 UTC (rev 55602)
@@ -24,6 +24,7 @@
  */
 
 #include "common/events.h"
+#include "common/debug-channels.h"
 #include "parallaction/exec.h"
 #include "parallaction/input.h"
 #include "parallaction/parallaction.h"
@@ -161,6 +162,19 @@
 	
 	if (_state != newState) {
 		debugC(3, kDebugDialogue, "DialogueManager moved to state '%s'", dialogueStates[newState]);
+
+		if (DebugMan.isDebugChannelEnabled(kDebugDialogue) && gDebugLevel == 9) {			
+			switch (newState) {
+				case RUN_QUESTION:
+					debug("  Q  : %s", _q->_text.c_str());
+					break;
+				case RUN_ANSWER:
+					for (int i = 0; i < _numVisAnswers; ++i) {
+						debug("  A%02i: %s", i, _visAnswers[i]._a->_text.c_str());
+					}
+					break;
+			}
+		}
 	}
 
 	_state = newState;


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