diff options
author | Eugene Sandulenko | 2016-01-03 00:52:52 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-03 00:52:52 +0100 |
commit | 330f4417e56fea4f004b756d20e43f08221566a5 (patch) | |
tree | e70999785147820b2731ab89fc5756d5646e6d7c | |
parent | c3f20695ee85d491688c8173b9f54490527d504c (diff) | |
download | scummvm-rg350-330f4417e56fea4f004b756d20e43f08221566a5.tar.gz scummvm-rg350-330f4417e56fea4f004b756d20e43f08221566a5.tar.bz2 scummvm-rg350-330f4417e56fea4f004b756d20e43f08221566a5.zip |
WAGE: More debug output
-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; } |