X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fanim.c;h=6fe1cb6dc3c0ba638f5a8be3f237cbb7a17d36c1;hp=71f9958857020ce938ee3edc49277b18333fa9a0;hb=97aa8b2f63cbd4c210d20264f57bae3e342b14d4;hpb=da0b032a906bd0fdadf798802c04c9084bee074c diff --git a/src/anim.c b/src/anim.c index 71f99588..6fe1cb6d 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1638,15 +1638,13 @@ static boolean DoGlobalAnim_EventAction(struct GlobalAnimPartControlInfo *part) if (anim_event_action == -1) return FALSE; - boolean action_executed = (DoGadgetAction(anim_event_action) || - DoScreenAction(anim_event_action) || - DoKeysymAction(anim_event_action)); + PushUserEvent(USEREVENT_ANIM_EVENT_ACTION, anim_event_action, 0); // check if further actions are allowed to be executed if (part->control_info.style & STYLE_MULTIPLE_ACTIONS) return FALSE; - return action_executed; + return TRUE; } static void InitGlobalAnim_Clickable(void)