moved flag for mouse click events from level to game structure
[rocksndiamonds.git] / src / events.c
index 2b55372054f61a8479e66ccb911cbb7ed77dae75..2f5589fee711f23ae7cc8014138db14759f1e28b 100644 (file)
@@ -1375,7 +1375,7 @@ static void HandleButtonOrFinger(int mx, int my, int button)
   {
     if (strEqual(setup.touch.control_type, TOUCH_CONTROL_FOLLOW_FINGER))
       HandleButtonOrFinger_FollowFinger(mx, my, button);
-    else if (level.has_mouse_events && valid_mouse_event)
+    else if (game.use_mouse_events && valid_mouse_event)
       SetPlayerMouseAction(mx, my, button);
   }
 }