From 0e3c1c7a1294a332f3eab6ae4bdfd8ef95fe7af5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 27 Nov 2019 19:04:54 +0100 Subject: DIRECTOR: LINGO: Explain why tests are skipped --- engines/director/lingo/lingo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 4b290747f9..365b67c38d 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -192,7 +192,10 @@ void Lingo::addCode(const char *code, ScriptType type, uint16 id) { begin = end; } - _hadError = true; // HACK: This is for preventing test execution + // Do not execute event handlers, macros and factories + // A side effect of it is that if you had those in your test script, + // then the whole script will not be executed + _hadError = true; debugC(1, kDebugLingoCompile, "Code chunk:\n#####\n%s\n#####", begin); parse(begin); -- cgit v1.2.3