changed click events for global animations to ignore 'consumed' clicks
[rocksndiamonds.git] / src / events.c
index 25d243b7b105f5beb368b203e7195ee97a1bc450..93b135503b073c32e9a34ee79ccf5fbbcf13562a 100644 (file)
@@ -1233,6 +1233,12 @@ void HandleButton(int mx, int my, int button, int button_nr)
   }
 #endif
 
   }
 #endif
 
+  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;