diff options
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r-- | engines/wage/script.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index a11cc4829f..1e29f562e5 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -762,15 +762,22 @@ bool Script::evalClickEquality(Operand *lhs, Operand *rhs, bool partialMatch) { Common::String str = rhs->toString(); str.toLowercase(); + debug(9, "evalClickEquality(%s, %s, %d)", lhs->_value.designed->_name.c_str(), rhs->_value.designed->_name.c_str(), partialMatch); + debug(9, "l: %d r: %d (ch: %d ob: %d)", lhs->_type, rhs->_type, CHR, OBJ); + debug(9, "class: %d", lhs->_value.inputClick->_classType); + if (lhs->_value.inputClick->_classType == CHR || lhs->_value.inputClick->_classType == OBJ) { Common::String name = lhs->_value.designed->_name; name.toLowercase(); + warning("%s <> %s", name.c_str(), str.c_str()); if (partialMatch) result = name.contains(str); else result = name.equals(str); } + + debug(9, "result: %d", result); } return result; } |