aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-02 02:10:43 +0100
committerMartin Kiewitz2016-02-02 02:10:43 +0100
commit59d2c4b27ed7481eee32578985604d9345e182b2 (patch)
treeec2043fc86d5f6d488cd160d6876cf2f1aec13ca /engines/sci/engine
parentc0bdbe1ca88967bddd877e14d1e99d3fedaf715e (diff)
downloadscummvm-rg350-59d2c4b27ed7481eee32578985604d9345e182b2.tar.gz
scummvm-rg350-59d2c4b27ed7481eee32578985604d9345e182b2.tar.bz2
scummvm-rg350-59d2c4b27ed7481eee32578985604d9345e182b2.zip
SCI: Do not pass/use .data for mouse button type
Also added comment about .data field. Should be renamed.
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp
index 0e5cd7ae12..bb595e9960 100644
--- a/engines/sci/engine/kevent.cpp
+++ b/engines/sci/engine/kevent.cpp
@@ -152,7 +152,7 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) {
case SCI_EVENT_MOUSE_RELEASE:
case SCI_EVENT_MOUSE_PRESS:
// track left buttton clicks, if requested
- if (curEvent.type == SCI_EVENT_MOUSE_PRESS && curEvent.data == 1 && g_debug_track_mouse_clicks) {
+ if (curEvent.type == SCI_EVENT_MOUSE_PRESS && curEvent.modifiers == 0 && g_debug_track_mouse_clicks) {
g_sci->getSciDebugger()->debugPrintf("Mouse clicked at %d, %d\n",
mousePos.x, mousePos.y);
}