projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f626b6a
)
fixed use of element / drawing buffer
author
Holger Schemel
<holger.schemel@virtion.de>
Mon, 24 Jun 2024 22:31:32 +0000
(
00:31
+0200)
committer
Holger Schemel
<holger.schemel@virtion.de>
Mon, 24 Jun 2024 22:31:32 +0000
(
00:31
+0200)
src/game_bd/bd_cave.c
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_cave.c
b/src/game_bd/bd_cave.c
index 40d20f154c6ca240a0bb8d4ce47829f972d87ca9..6e474620bd9bd6fcad38365453133dbbcd70ea3e 100644
(file)
--- a/
src/game_bd/bd_cave.c
+++ b/
src/game_bd/bd_cave.c
@@
-1559,7
+1559,7
@@
void gd_drawcave_game(const GdCave *cave,
// special check needed when smooth game element movements selected in setup menu:
// last element must either be player (before pushing) or pushable element (while pushing)
// (extra check needed to prevent pushing animation when moving towards pushable element)
- if (!use_bd_smooth_movements() || last_
drawing
_buffer[y][x] != O_SPACE)
+ if (!use_bd_smooth_movements() || last_
element
_buffer[y][x] != O_SPACE)
{
if (cave->last_direction == GD_MV_LEFT)
map = O_PLAYER_PUSH_LEFT;