aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2011-11-26 20:46:23 +0100
committerAlyssa Milburn2011-11-26 20:49:02 +0100
commit581aca66fa95b9fad693db22e0df5e626b63d80c (patch)
tree7af9a27f33d9fa39d7c0e8650e2a3040d4f906ac /engines/mohawk
parent1c860bc4ce508506045e8f37fa4a6cf036577464 (diff)
downloadscummvm-rg350-581aca66fa95b9fad693db22e0df5e626b63d80c.tar.gz
scummvm-rg350-581aca66fa95b9fad693db22e0df5e626b63d80c.tar.bz2
scummvm-rg350-581aca66fa95b9fad693db22e0df5e626b63d80c.zip
MOHAWK: Parse true/false in LB scripts.
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks_code.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp
index c0c03e0e9b..28cf47783e 100644
--- a/engines/mohawk/livingbooks_code.cpp
+++ b/engines/mohawk/livingbooks_code.cpp
@@ -1419,7 +1419,13 @@ uint LBCode::parseCode(const Common::String &source) {
break;
tempString += source[pos++];
}
- wasFunction = parseCodeSymbol(tempString, pos, code);
+ if (tempString.equalsIgnoreCase("true")) {
+ code.push_back(kTokenTrue);
+ } else if (tempString.equalsIgnoreCase("false")) {
+ code.push_back(kTokenFalse);
+ } else {
+ wasFunction = parseCodeSymbol(tempString, pos, code);
+ }
} else {
error("while parsing script '%s', couldn't parse '%c'", source.c_str(), token);
}