projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug with global animation at wrong playfield position for one frame
[rocksndiamonds.git]
/
src
/
anim.c
diff --git
a/src/anim.c
b/src/anim.c
index c457936bcd7582b48c65f3c0c2143ea7753e993b..ee2e1ede3fa881b979cabb5aa548acd5a617ba64 100644
(file)
--- a/
src/anim.c
+++ b/
src/anim.c
@@
-1468,7
+1468,9
@@
static void InitGlobalAnim_Triggered_ByCustomElement(int nr, int page,
part2->tile_yoffset = c->y;
// set resulting animation position relative to CE tile position
part2->tile_yoffset = c->y;
// set resulting animation position relative to CE tile position
- SetGlobalAnimPartTileXY(part2);
+ // (but only for ".init_event", not ".anim_event" type events)
+ if (part2->init_event_state)
+ SetGlobalAnimPartTileXY(part2);
// restart animation (by using current sync frame)
part2->initial_anim_sync_frame = anim_sync_frame;
// restart animation (by using current sync frame)
part2->initial_anim_sync_frame = anim_sync_frame;