X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fanim.c;h=acc71733a218b1f85752b0d5be103d277298be90;hp=060bb60e8f9e7995644742030e8a410cdd5d7205;hb=76912e277a65fd8b4ec7e15cad94e0e682ce4528;hpb=fd4817380a5fba31a5745366b2f223f98ac4c169 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;