projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fcb3bc
)
fixed graphical bug when snap-pushing with smooth movement in BD engine
author
Holger Schemel
<holger.schemel@virtion.de>
Sat, 25 May 2024 23:08:13 +0000
(
01:08
+0200)
committer
Holger Schemel
<holger.schemel@virtion.de>
Sat, 25 May 2024 23:12:35 +0000
(
01:12
+0200)
src/game_bd/bd_graphics.c
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_graphics.c
b/src/game_bd/bd_graphics.c
index fb702375886ec86b17faa1914a0706d97ed019cd..4687ebfbe7e7d9f5aaedf26c25a25f080e67c80c 100644
(file)
--- a/
src/game_bd/bd_graphics.c
+++ b/
src/game_bd/bd_graphics.c
@@
-698,6
+698,11
@@
static void gd_drawcave_tile(Bitmap *dest, GdGame *game, int x, int y, boolean d
old_x <= cave->x2 &&
old_y >= cave->y1 &&
old_y <= cave->y2);
+
+ // never treat empty space as "moving" (may happen if player is snap-pushing element)
+ if (tile_from == O_SPACE)
+ old_is_moving = FALSE;
+
if (old_is_visible)
{
if (!old_is_moving && !old_is_player)