From d9cf5af9f0c66a582ca9efba744df8fc34310c67 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 2 Aug 2016 22:31:27 +0300 Subject: DIRECTOR: Lingo: Do not error out on unknown entities --- engines/director/lingo/lingo-lex.cpp | 4 ++-- engines/director/lingo/lingo-lex.l | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index f4e3541dfa..a7f672d363 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -1149,7 +1149,7 @@ YY_RULE_SETUP return THEENTITY; } - error("Unhandled the entity %s", ptr); + warning("Unhandled the entity %s", ptr); } YY_BREAK case 35: @@ -1172,7 +1172,7 @@ YY_RULE_SETUP return THEENTITY; } - error("Unhandled the entity %s", ptr); + warning("Unhandled the entity %s", ptr); } YY_BREAK case 36: diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 9532da4fcb..50ad8fa61a 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -131,7 +131,7 @@ whitespace [\t ] return THEENTITY; } - error("Unhandled the entity %s", ptr); + warning("Unhandled the entity %s", ptr); } (?i:the[ \t]+[[:alpha:]]+) { count(); @@ -150,7 +150,7 @@ whitespace [\t ] return THEENTITY; } - error("Unhandled the entity %s", ptr); + warning("Unhandled the entity %s", ptr); } (?i:then) { count(); return tTHEN; } (?i:to) { count(); return tTO; } -- cgit v1.2.3