From: Holger Schemel Date: Thu, 21 Mar 2019 23:30:15 +0000 (+0100) Subject: fixed initializing post delay counter when starting global animation X-Git-Tag: 4.1.3.0~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cc3e2f7d6ba6593e7c6aad77d63b14886096d066;p=rocksndiamonds.git fixed initializing post delay counter when starting global animation --- diff --git a/src/anim.c b/src/anim.c index 6fe1cb6d..eefb5a1d 100644 --- a/src/anim.c +++ b/src/anim.c @@ -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);