From 03202ac75897c6b698a7bd97ffa041ca0e94d9b2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 9 Oct 2023 00:16:53 +0200 Subject: [PATCH] fixed bug with global animation at top left playfield corner for one frame --- src/anim.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/anim.c b/src/anim.c index 3dd9a143..c457936b 100644 --- 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) { - // 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; + // 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; } -- 2.34.1