aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-02 22:25:33 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitb2d5c25e2fb35dfd46702af79faf526d4ffe38b0 (patch)
tree376f67f0f22db14af78a157b00f5ff4095e6908d /engines/director/lingo
parentaf3ca5ba0d327c26d1298657d54f5f9dd59715f9 (diff)
downloadscummvm-rg350-b2d5c25e2fb35dfd46702af79faf526d4ffe38b0.tar.gz
scummvm-rg350-b2d5c25e2fb35dfd46702af79faf526d4ffe38b0.tar.bz2
scummvm-rg350-b2d5c25e2fb35dfd46702af79faf526d4ffe38b0.zip
DIRECTOR: Lingo: Do not error() on syntax errors
Diffstat (limited to 'engines/director/lingo')
-rw-r--r--engines/director/lingo/lingo-gr.cpp2
-rw-r--r--engines/director/lingo/lingo-gr.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index aa296ede98..3791239782 100644
--- a/engines/director/lingo/lingo-gr.cpp
+++ b/engines/director/lingo/lingo-gr.cpp
@@ -211,7 +211,7 @@ extern int yyparse();
using namespace Director;
void yyerror(char *s) {
g_lingo->_hadError = true;
- error("%s at line %d col %d", s, g_lingo->_linenumber, g_lingo->_colnumber);
+ warning("%s at line %d col %d", s, g_lingo->_linenumber, g_lingo->_colnumber);
}
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y
index 4ab7ed3f99..9a10916048 100644
--- a/engines/director/lingo/lingo-gr.y
+++ b/engines/director/lingo/lingo-gr.y
@@ -60,7 +60,7 @@ extern int yyparse();
using namespace Director;
void yyerror(char *s) {
g_lingo->_hadError = true;
- error("%s at line %d col %d", s, g_lingo->_linenumber, g_lingo->_colnumber);
+ warning("%s at line %d col %d", s, g_lingo->_linenumber, g_lingo->_colnumber);
}