From: Holger Schemel Date: Sat, 23 Mar 2019 21:16:37 +0000 (+0100) Subject: fixed bug with not recognizing ".init_event_action" for global animations X-Git-Tag: 4.1.3.0~21 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ab13e068d9c605bc5d6b751e743e26a2cf9ec619;p=rocksndiamonds.git fixed bug with not recognizing ".init_event_action" for global animations --- diff --git a/src/anim.c b/src/anim.c index eefb5a1d..a531ceb8 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1635,7 +1635,9 @@ static void DoAnimationExt(void) static boolean DoGlobalAnim_EventAction(struct GlobalAnimPartControlInfo *part) { - int anim_event_action = part->control_info.anim_event_action; + int anim_event_action = (part->init_event_state ? + part->control_info.init_event_action : + part->control_info.anim_event_action); if (anim_event_action == -1) return FALSE;