From 581aca66fa95b9fad693db22e0df5e626b63d80c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sat, 26 Nov 2011 20:46:23 +0100 Subject: MOHAWK: Parse true/false in LB scripts. --- engines/mohawk/livingbooks_code.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines/mohawk') 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); } -- cgit v1.2.3