X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fanim.c;h=81441829e8694ef2b0fb8f44b27cb8443fe45e9e;hp=50cbba7b73521e650248525867e655b447f16e7e;hb=b3be19debfe6a782dced04fe3ee4406b7d8a2135;hpb=ee8086c220663ad470ed61b1cef90eeb66be5cb1 diff --git a/src/anim.c b/src/anim.c index 50cbba7b..81441829 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1450,8 +1450,14 @@ static boolean DoGlobalAnim_EventAction(struct GlobalAnimPartControlInfo *part) if (anim_event_action == -1) return FALSE; - return (DoGadgetAction(anim_event_action) || - DoScreenAction(anim_event_action)); + boolean action_executed = (DoGadgetAction(anim_event_action) || + DoScreenAction(anim_event_action)); + + // check if further actions are allowed to be executed + if (part->control_info.style & STYLE_MULTIPLE_ACTIONS) + return FALSE; + + return action_executed; } static void InitGlobalAnim_Clickable()