aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo-lex.cpp5
-rw-r--r--engines/director/lingo/lingo-lex.l5
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp
index 009ae8fe57..dc48bc6e7a 100644
--- a/engines/director/lingo/lingo-lex.cpp
+++ b/engines/director/lingo/lingo-lex.cpp
@@ -2386,7 +2386,10 @@ namespace Director {
int Lingo::parse(const char *code) {
YY_BUFFER_STATE bp;
- yydebug = 0;
+ if (debugChannelSet(10, kDebugLingoCompile))
+ yydebug = 1;
+ else
+ yydebug = 0;
yy_delete_buffer(YY_CURRENT_BUFFER);
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l
index e7d3a84475..d0a93ca739 100644
--- a/engines/director/lingo/lingo-lex.l
+++ b/engines/director/lingo/lingo-lex.l
@@ -230,7 +230,10 @@ namespace Director {
int Lingo::parse(const char *code) {
YY_BUFFER_STATE bp;
- yydebug = 0;
+ if (debugChannelSet(10, kDebugLingoCompile))
+ yydebug = 1;
+ else
+ yydebug = 0;
yy_delete_buffer(YY_CURRENT_BUFFER);