[Scummvm-git-logs] scummvm master -> fc883bb340213be5ef1a860b1c5e99f2d8cb0235
neuromancer
neuromancer at users.noreply.github.com
Mon Jul 5 18:12:51 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
fc883bb340 PRIVATE: count number of click only if they hit a hotspot
Commit: fc883bb340213be5ef1a860b1c5e99f2d8cb0235
https://github.com/scummvm/scummvm/commit/fc883bb340213be5ef1a860b1c5e99f2d8cb0235
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2021-07-05T20:12:38+02:00
Commit Message:
PRIVATE: count number of click only if they hit a hotspot
Changed paths:
engines/private/private.cpp
diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index c0fc205e65..5cd7a3562e 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -247,7 +247,6 @@ Common::Error PrivateEngine::run() {
break;
case Common::EVENT_LBUTTONDOWN:
- _numberClicks++;
if (selectDossierNextSuspect(mousePos))
break;
else if (selectDossierPrevSuspect(mousePos))
@@ -641,6 +640,7 @@ void PrivateEngine::selectExit(Common::Point mousePos) {
}
}
if (!ns.empty()) {
+ _numberClicks++; // count click only if it hits a hotspot
_nextSetting = ns;
}
}
@@ -673,7 +673,7 @@ void PrivateEngine::selectMask(Common::Point mousePos) {
}
}
if (!ns.empty()) {
- //debug("Mask selected %s", ns->c_str());
+ _numberClicks++; // count click only if it hits a hotspot
_nextSetting = ns;
}
}
More information about the Scummvm-git-logs
mailing list