fixed dumping tiles when holding mouse button (MM engine)
authorHolger Schemel <info@artsoft.org>
Mon, 20 Feb 2017 07:37:06 +0000 (08:37 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:08 +0000 (23:21 +0100)
src/events.c

index f769714ea10da1c7a6017d653d48cbbcdba1a0f5..55c9b59dfd6675cf1cb350b13e233dd65f526ed1 100644 (file)
@@ -1333,8 +1333,8 @@ void HandleButton(int mx, int my, int button, int button_nr)
 #endif
 
 #ifdef DEBUG
-      if (button == MB_PRESSED && !motion_status && IN_GFX_FIELD_PLAY(mx, my) &&
-         GetKeyModState() & KMOD_Control)
+      if (button == MB_PRESSED && !motion_status && !button_hold &&
+         IN_GFX_FIELD_PLAY(mx, my) && GetKeyModState() & KMOD_Control)
        DumpTileFromScreen(mx, my);
 #endif