fixed initializing post delay counter when starting global animation
authorHolger Schemel <info@artsoft.org>
Thu, 21 Mar 2019 23:30:15 +0000 (00:30 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 21 Mar 2019 23:30:15 +0000 (00:30 +0100)
src/anim.c

index 6fe1cb6dc3c0ba638f5a8be3f237cbb7a17d36c1..eefb5a1dba076afd59842c4f05459dec1ab1e465 100644 (file)
@@ -1197,6 +1197,8 @@ static int HandleGlobalAnim_Part(struct GlobalAnimPartControlInfo *part,
     part->anim_delay_counter =
       (c->anim_delay_fixed + GetSimpleRandom(c->anim_delay_random));
 
+    part->post_delay_counter = 0;
+
     part->init_event_state = (c->init_event != ANIM_EVENT_UNDEFINED);
     part->anim_event_state = (c->anim_event != ANIM_EVENT_UNDEFINED);