aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-24 01:23:14 +0100
committerEugene Sandulenko2019-12-24 14:08:16 +0100
commit48a6bb4daab97fb36eae82ba15ed9dcc17372490 (patch)
treee9baf6e4bb1e3efbf6ccf74757edcd01c2cb01b3 /engines
parent18afddd3370fd03fff3f6d1abb83c2b9bf78e024 (diff)
downloadscummvm-rg350-48a6bb4daab97fb36eae82ba15ed9dcc17372490.tar.gz
scummvm-rg350-48a6bb4daab97fb36eae82ba15ed9dcc17372490.tar.bz2
scummvm-rg350-48a6bb4daab97fb36eae82ba15ed9dcc17372490.zip
DIRECTOR: LINGO: Force end line at the scripts
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-preprocessor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-preprocessor.cpp b/engines/director/lingo/lingo-preprocessor.cpp
index bd85b8b048..8d4f74fdea 100644
--- a/engines/director/lingo/lingo-preprocessor.cpp
+++ b/engines/director/lingo/lingo-preprocessor.cpp
@@ -273,6 +273,8 @@ Common::String Lingo::codePreprocessor(const char *s, bool simple) {
res += "\nend if";
}
+ // Make the parser happier when there is no newline at the end
+ res += '\n';
debugC(2, kDebugLingoParse, "#############\n%s\n#############", res.c_str());