projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b3a64c
)
fixed state of inactive parts of global animations
author
Holger Schemel
<info@artsoft.org>
Fri, 8 Jun 2018 21:27:20 +0000
(23:27 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 17 Jun 2018 22:02:48 +0000
(
00:02
+0200)
src/anim.c
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index fa124cb6ab692e957125a060b0d8ffe0a013ef96..054c6a00764f533e0a78d8208d0e047ab6304220 100644
(file)
--- 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);