From: Holger Schemel Date: Mon, 11 Jun 2018 18:11:51 +0000 (+0200) Subject: added ignoring gadgets if click already caused animation event action X-Git-Tag: 4.1.1.0~133 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ee8086c220663ad470ed61b1cef90eeb66be5cb1;p=rocksndiamonds.git added ignoring gadgets if click already caused animation event action Before, even though executing more than one event action triggered by clickable global animations was already prevented, further processing of mouse clicks by gadgets at the same position was still performed if the global animation style was set to "passthrough_clicks", which could lead to more than one gadgets being triggered at the same time by a single click on a clickable global animation, with potentially unwanted side effects. Now, mouse clicks that already triggered an event action (which could be a gadget) are not processed by the standard gadget handling anymore. --- diff --git a/src/anim.c b/src/anim.c index a38a1c3d..50cbba7b 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1601,7 +1601,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, boolean clicked) } } - return anything_clicked; + return (anything_clicked || any_event_action); } static void ResetGlobalAnim_Clickable()