aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-23 22:49:11 +0100
committerEugene Sandulenko2019-12-24 00:19:26 +0100
commit701d74fc3112e05c45728d100c0b503fa0997bca (patch)
tree077547b5723c98e66a6f4f512d8607eb9bb3b057 /engines
parenta203a5b0d5a6245803d6dbe700d041b5ed25e6b3 (diff)
downloadscummvm-rg350-701d74fc3112e05c45728d100c0b503fa0997bca.tar.gz
scummvm-rg350-701d74fc3112e05c45728d100c0b503fa0997bca.tar.bz2
scummvm-rg350-701d74fc3112e05c45728d100c0b503fa0997bca.zip
DIRECTOR: LINGO: Added another use case for 'return' constant
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 347b97a42e..02c7060e5b 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -506,7 +506,8 @@ Common::String Lingo::preprocessReturn(Common::String in) {
next = nexttok(ptr + 6); // end of 'return'
- if (prev.equals("&") || prev.equals("&&") || next.equals("&") || next.equals("&&")) {
+ if (prev.equals("&") || prev.equals("&&") || prev.equals("=") ||
+ next.equals("&") || next.equals("&&")) {
res += "scummvm_"; // Turn it into scummvm_return
}
@@ -516,6 +517,9 @@ Common::String Lingo::preprocessReturn(Common::String in) {
res += Common::String(beg);
+ if (in.size() != res.size())
+ debugC(2, kDebugLingoParse, "RETURN: in: %s\nout: %s", in.c_str(), res.c_str());
+
return res;
}