From: Holger Schemel Date: Fri, 8 Jun 2018 21:27:20 +0000 (+0200) Subject: fixed state of inactive parts of global animations X-Git-Tag: 4.1.1.0~143 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=410d7a408613b171e14d79f734561d3cd98debda;p=rocksndiamonds.git fixed state of inactive parts of global animations --- diff --git a/src/anim.c b/src/anim.c index fa124cb6..054c6a00 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1353,6 +1353,11 @@ void HandleGlobalAnim_Main(struct GlobalAnimMainControlInfo *anim, int action) part = &anim->part[anim->active_part_nr]; + // first set all animation parts to "inactive", ... + for (i = 0; i < num_parts; i++) + anim->part[i].state = ANIM_STATE_INACTIVE; + + // ... then set current animation parts to "running" part->state = ANIM_STATE_RUNNING; anim->state = HandleGlobalAnim_Part(part, anim->state);