projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97aa8b2
)
fixed initializing post delay counter when starting global animation
author
Holger Schemel
<info@artsoft.org>
Thu, 21 Mar 2019 23:30:15 +0000
(
00:30
+0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 21 Mar 2019 23:30:15 +0000
(
00:30
+0100)
src/anim.c
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index 6fe1cb6dc3c0ba638f5a8be3f237cbb7a17d36c1..eefb5a1dba076afd59842c4f05459dec1ab1e465 100644
(file)
--- 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);