From c18a3e28e2c1764b08088a0a1a7f5ec54a2db23a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 9 Jan 2017 09:24:18 +0100 Subject: DIRECTOR: Lingo: Debug Lingo parsing only with debugchannel explicitely set --- engines/director/lingo/lingo-lex.cpp | 2 +- engines/director/lingo/lingo-lex.l | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 5197d002dd..77ca20a1db 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -2391,7 +2391,7 @@ namespace Director { int Lingo::parse(const char *code) { YY_BUFFER_STATE bp; - if (debugChannelSet(10, kDebugLingoCompile)) + if (debugChannelSet(-1, kDebugLingoCompile)) yydebug = 1; else yydebug = 0; diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 882e06d0f8..294cc66e82 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -231,7 +231,7 @@ namespace Director { int Lingo::parse(const char *code) { YY_BUFFER_STATE bp; - if (debugChannelSet(10, kDebugLingoCompile)) + if (debugChannelSet(-1, kDebugLingoCompile)) yydebug = 1; else yydebug = 0; -- cgit v1.2.3