Added some debug info for loop statuses and dialogues.

svn-id: r43295
This commit is contained in:
Denis Kasak 2009-08-12 00:56:44 +00:00
parent 9093e179cc
commit 3b0895dd2f

View File

@ -270,6 +270,9 @@ void Game::loop() {
Surface *surface = _vm->_screen->getSurface();
debugC(6, kDraciLogicDebugLevel, "loopstatus: %d, loopsubstatus: %d",
_loopStatus, _loopSubstatus);
do {
_vm->handleEvents();
@ -534,7 +537,9 @@ void Game::dialogueMenu(int dialogueID) {
_dialogueExit = false;
hit = dialogueDraw();
debug(2, "Hit: %d, _lines[hit]: %d", hit, _lines[hit]);
debug(7, kDraciLogicDebugLevel,
"hit: %d, _lines[hit]: %d, lastblock: %d, dialogueLines: %d, dialogueExit: %d",
hit, _lines[hit], _lastBlock, _dialogueLines, _dialogueExit);
if ((!_dialogueExit) && (hit != -1) && (_lines[hit] != -1)) {
if ((oldLines == 1) && (_dialogueLines == 1) && (_lines[hit] == _lastBlock)) {