projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d3bcf9a
)
fixed bug with global animation at top left playfield corner for one frame
author
Holger Schemel
<info@artsoft.org>
Sun, 8 Oct 2023 22:16:53 +0000
(
00:16
+0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 8 Oct 2023 22:18:59 +0000
(
00:18
+0200)
src/anim.c
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index 3dd9a14394766938b2c762d0303e824c03eb53dc..c457936bcd7582b48c65f3c0c2143ea7753e993b 100644
(file)
--- a/
src/anim.c
+++ b/
src/anim.c
@@
-1461,16
+1461,15
@@
static void InitGlobalAnim_Triggered_ByCustomElement(int nr, int page,
if (c->position == POS_CE)
{
if (c->position == POS_CE)
{
- // may contain negative tile offset that is treated as "off-screen"
- part2->x = 0;
- part2->y = 0;
-
// store CE tile and offset position to handle scrolling
part2->tile_x = x;
part2->tile_y = y;
part2->tile_xoffset = c->x;
part2->tile_yoffset = c->y;
// store CE tile and offset position to handle scrolling
part2->tile_x = x;
part2->tile_y = y;
part2->tile_xoffset = c->x;
part2->tile_yoffset = c->y;
+ // set resulting animation position relative to CE tile position
+ 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;
}