From: Holger Schemel Date: Mon, 2 Oct 2023 23:07:36 +0000 (+0200) Subject: fixed bug with CE triggered global animations treated as "off-screen" X-Git-Tag: 4.3.7.0~13 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=76912e277a65fd8b4ec7e15cad94e0e682ce4528 fixed bug with CE triggered global animations treated as "off-screen" --- diff --git a/src/anim.c b/src/anim.c index 060bb60e..acc71733 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1433,6 +1433,10 @@ 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;