changed click events for global animations to ignore 'consumed' clicks
[rocksndiamonds.git] / src / events.c
index 20c6e3432e3dff614ea005e59cda0fb70c92a371..93b135503b073c32e9a34ee79ccf5fbbcf13562a 100644 (file)
@@ -1233,7 +1233,11 @@ void HandleButton(int mx, int my, int button, int button_nr)
   }
 #endif
 
   }
 #endif
 
-  HandleGlobalAnimClicks(mx, my, button);
+  if (HandleGlobalAnimClicks(mx, my, button))
+  {
+    /* do not handle this button event anymore */
+    mx = my = -32;     /* force mouse event to be outside screen tiles */
+  }
 
   if (button_hold && game_status == GAME_MODE_PLAYING && tape.pausing)
     return;
 
   if (button_hold && game_status == GAME_MODE_PLAYING && tape.pausing)
     return;