rnd-20031205-B-src
[rocksndiamonds.git] / src / events.c
index 8cb7c51d81c9876ec600649928b1ebe13651c2c2..5af02c558fccfb9dd6d5a522534e75cdeff60656 100644 (file)
@@ -377,7 +377,7 @@ void HandleButton(int mx, int my, int button)
   if (HandleGadgets(mx, my, button))
   {
     /* do not handle this button event anymore */
-    mx = my = 0;
+    mx = my = -32;     /* force mouse event to be outside screen tiles */
   }
 
   switch(game_status)
@@ -438,6 +438,8 @@ void HandleButton(int mx, int my, int button)
          printf("      GfxElement[%d][%d] == %d\n", x,y, GfxElement[x][y]);
          printf("      GfxAction[%d][%d] == %d\n", x,y, GfxAction[x][y]);
          printf("      GfxFrame[%d][%d] == %d\n", x,y, GfxFrame[x][y]);
+         printf("      RunnerVisit[%d][%d] == %d\n", x,y, RunnerVisit[x][y]);
+         printf("      PlayerVisit[%d][%d] == %d\n", x,y, PlayerVisit[x][y]);
          printf("\n");
        }
       }