fixed bug with CE triggered global animations treated as "off-screen"
authorHolger Schemel <info@artsoft.org>
Mon, 2 Oct 2023 23:07:36 +0000 (01:07 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 2 Oct 2023 23:07:36 +0000 (01:07 +0200)
src/anim.c

index 060bb60e8f9e7995644742030e8a410cdd5d7205..acc71733a218b1f85752b0d5be103d277298be90 100644 (file)
@@ -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;