diff options
author | Strangerke | 2015-05-22 19:25:52 +0200 |
---|---|---|
committer | Strangerke | 2015-05-22 19:25:52 +0200 |
commit | 68c7c158e93e27919d0b63d537b3b18ba35543ca (patch) | |
tree | fac252b3166980c5e4660aaf2e6defea91f97caf | |
parent | 57b106d41793f91f571c7bd29b71165f875c1372 (diff) | |
download | scummvm-rg350-68c7c158e93e27919d0b63d537b3b18ba35543ca.tar.gz scummvm-rg350-68c7c158e93e27919d0b63d537b3b18ba35543ca.tar.bz2 scummvm-rg350-68c7c158e93e27919d0b63d537b3b18ba35543ca.zip |
SHERLOCK: Fix OR check with identical operands
-rw-r--r-- | engines/sherlock/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/settings.cpp b/engines/sherlock/settings.cpp index 44735d9c82..ea4dc56eb2 100644 --- a/engines/sherlock/settings.cpp +++ b/engines/sherlock/settings.cpp @@ -143,7 +143,7 @@ int Settings::drawButtons(const Common::Point &pt, int _key) { for (int idx = 0; idx < 12; ++idx) { if ((pt.x > SETUP_POINTS[idx][0] && pt.x < SETUP_POINTS[idx][2] && pt.y > SETUP_POINTS[idx][1] - && pt.y < (SETUP_POINTS[idx][1] + 10) && (events._released || events._released)) + && pt.y < (SETUP_POINTS[idx][1] + 10) && (events._presed || events._released)) || (_key == SETUP_NAMES[idx][0])) { found = idx; color = COMMAND_HIGHLIGHTED; |