From: Holger Schemel Date: Mon, 20 Feb 2017 07:37:06 +0000 (+0100) Subject: fixed dumping tiles when holding mouse button (MM engine) X-Git-Tag: 4.1.0.0~205 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=0a2e98d80d193ae61aa503bc64dfdc66ed977d5c;p=rocksndiamonds.git fixed dumping tiles when holding mouse button (MM engine) --- diff --git a/src/events.c b/src/events.c index f769714e..55c9b59d 100644 --- a/src/events.c +++ b/src/events.c @@ -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