projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd48173
)
fixed bug with CE triggered global animations treated as "off-screen"
author
Holger Schemel
<info@artsoft.org>
Mon, 2 Oct 2023 23:07:36 +0000
(
01:07
+0200)
committer
Holger Schemel
<info@artsoft.org>
Mon, 2 Oct 2023 23:07:36 +0000
(
01:07
+0200)
src/anim.c
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index 060bb60e8f9e7995644742030e8a410cdd5d7205..acc71733a218b1f85752b0d5be103d277298be90 100644
(file)
--- 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;