fixed bug with not recognizing ".init_event_action" for global animations
authorHolger Schemel <info@artsoft.org>
Sat, 23 Mar 2019 21:16:37 +0000 (22:16 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 23 Mar 2019 21:16:37 +0000 (22:16 +0100)
src/anim.c

index eefb5a1dba076afd59842c4f05459dec1ab1e465..a531ceb84548eeec6059fa5ecea9d00100f01318 100644 (file)
@@ -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;