aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-02 22:31:27 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitd9cf5af9f0c66a582ca9efba744df8fc34310c67 (patch)
treef329368c9cf7b20a3b94fb4987bb052a07a72d7b
parent5414a0ec2cfbdc1572501af5de8e055a06bd6b31 (diff)
downloadscummvm-rg350-d9cf5af9f0c66a582ca9efba744df8fc34310c67.tar.gz
scummvm-rg350-d9cf5af9f0c66a582ca9efba744df8fc34310c67.tar.bz2
scummvm-rg350-d9cf5af9f0c66a582ca9efba744df8fc34310c67.zip
DIRECTOR: Lingo: Do not error out on unknown entities
-rw-r--r--engines/director/lingo/lingo-lex.cpp4
-rw-r--r--engines/director/lingo/lingo-lex.l4
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; }