diff options
author | Eugene Sandulenko | 2017-03-17 09:38:39 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-17 09:38:39 +0000 |
commit | 9cb608c70f4435339b3a820f9ce321b5784d0e0d (patch) | |
tree | 41f782f517ecaa8ff73e3241904047dbf578b68f | |
parent | 595ea902bf08b988d8711adf1d5a4e7feb6e7bfd (diff) | |
download | scummvm-rg350-9cb608c70f4435339b3a820f9ce321b5784d0e0d.tar.gz scummvm-rg350-9cb608c70f4435339b3a820f9ce321b5784d0e0d.tar.bz2 scummvm-rg350-9cb608c70f4435339b3a820f9ce321b5784d0e0d.zip |
DIRECTOR: Lingo: Improved debug on event handling
-rw-r--r-- | engines/director/lingo/lingo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index f00d9a7d32..a51ff222c7 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -299,7 +299,7 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) { if (entityId < 0) return; - debugC(1, kDebugEvents, "Lingo::processEvent(%s, %s, %d)", _eventHandlerTypes[event], scriptType2str(st), entityId); + debugC(9, kDebugEvents, "Lingo::processEvent(%s, %s, %d)", _eventHandlerTypes[event], scriptType2str(st), entityId); _currentEntityId = entityId; @@ -307,8 +307,11 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) { error("processEvent: Unknown event %d for entity %d", event, entityId); if (_handlers.contains(ENTITY_INDEX(event, entityId))) { + debugC(1, kDebugEvents, "Lingo::processEvent(%s, %s, %d), _eventHandler", _eventHandlerTypes[event], scriptType2str(st), entityId); call(_eventHandlerTypes[event], 0); // D4+ Events } else if (_scripts[st].contains(entityId)) { + debugC(1, kDebugEvents, "Lingo::processEvent(%s, %s, %d), script", _eventHandlerTypes[event], scriptType2str(st), entityId); + executeScript(st, entityId); // D3 list of scripts. } else { debugC(3, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId); |