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 6fe1cb6..eefb5a1 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);