projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added option to not trigger further animations if CE change event consumed
[rocksndiamonds.git]
/
src
/
anim.c
diff --git
a/src/anim.c
b/src/anim.c
index 0e866110cb24cd4a6ec290dabe928f4ee60bb727..68147f0bc06ac100e36e0a51135864a93b587e84 100644
(file)
--- a/
src/anim.c
+++ b/
src/anim.c
@@
-1411,6
+1411,10
@@
static void InitGlobalAnim_Triggered_ByCustomElement(int nr, int page,
part2->triggered = TRUE;
part2->triggered = TRUE;
+ // do not trigger any other animation if CE change event was consumed
+ if (c->style == STYLE_CONSUME_CE_EVENT)
+ return;
+
#if 0
Debug("anim:InitGlobalAnim_Triggered_ByCustomElement",
"%d.%d TRIGGERED BY CE %d", anim2_nr, part2_nr, nr + 1);
#if 0
Debug("anim:InitGlobalAnim_Triggered_ByCustomElement",
"%d.%d TRIGGERED BY CE %d", anim2_nr, part2_nr, nr + 1);