From ab13e068d9c605bc5d6b751e743e26a2cf9ec619 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 23 Mar 2019 22:16:37 +0100 Subject: [PATCH] fixed bug with not recognizing ".init_event_action" for global animations --- src/anim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.34.1