diff options
author | Nicola Mettifogo | 2011-01-29 07:20:42 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2011-01-29 07:20:42 +0000 |
commit | 6d4d253ec44408006b37f5e08d9c284618175ff9 (patch) | |
tree | c79ad59b8c269f44ad7bdd76a446be57e7da6a83 | |
parent | cf4f041c636fa128717d3758d664b8b476dffbee (diff) | |
download | scummvm-rg350-6d4d253ec44408006b37f5e08d9c284618175ff9.tar.gz scummvm-rg350-6d4d253ec44408006b37f5e08d9c284618175ff9.tar.bz2 scummvm-rg350-6d4d253ec44408006b37f5e08d9c284618175ff9.zip |
PARALLACTION: Improve dialogue debug output.
Print out the current question or the available answers when debug level is 9.
svn-id: r55602
-rw-r--r-- | engines/parallaction/dialogue.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index dea7a9b8bb..1865171053 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -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 @@ void DialogueManager::transitionToState(DialogueState newState) { 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; |