From: Holger Schemel Date: Tue, 14 Nov 2023 23:30:30 +0000 (+0100) Subject: fixed state of global animation parts waiting for initial event X-Git-Tag: 4.3.8.0~40 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;ds=sidebyside;h=4df12da1c01af95ec10714e247c9059315073016;p=rocksndiamonds.git fixed state of global animation parts waiting for initial event --- diff --git a/src/anim.c b/src/anim.c index 7ecdf8fd..222369e1 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1934,9 +1934,13 @@ static void HandleGlobalAnim_Main(struct GlobalAnimMainControlInfo *anim, for (i = 0; i < num_parts; i++) anim->part[i].state = ANIM_STATE_INACTIVE; - // ... then set current animation parts to "running" + // ... then set current animation part to "running" ... part->state = ANIM_STATE_RUNNING; + // ... unless it is waiting for an initial event + if (part->init_event_state) + part->state = ANIM_STATE_WAITING; + anim->state = HandleGlobalAnim_Part(part, anim->state); if (anim->state & ANIM_STATE_RESTART)