X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fanim.c;h=a08b813e53019d3e94879d5fa4e5eb599f5a044f;hb=e8e25abd27f7ba929f90f84c2e266ff91d2389d4;hp=c3948745602ad2cbbfeb5ac56ee6a575b4a47717;hpb=bd4bc1bc76940bd91ecfbf7d01790c0433ab19e2;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index c3948745..a08b813e 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1766,7 +1766,10 @@ static boolean DoGlobalAnim_EventAction(struct GlobalAnimPartControlInfo *part) if (event_action == ANIM_EVENT_ACTION_NONE) return FALSE; - PushUserEvent(USEREVENT_ANIM_EVENT_ACTION, event_action, 0); + if (event_action < MAX_IMAGE_FILES) + PushUserEvent(USEREVENT_ANIM_EVENT_ACTION, event_action, 0); + else + OpenURLFromHash(anim_url_hash, event_action); // check if further actions are allowed to be executed if (part->control_info.style & STYLE_MULTIPLE_ACTIONS)