projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c7e7cd
)
minor code cleanup
author
Holger Schemel
<info@artsoft.org>
Sat, 17 Feb 2024 13:13:51 +0000
(14:13 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sun, 18 Feb 2024 15:17:01 +0000
(16:17 +0100)
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 d2b9d174f43291cabbbe4f401acb8d81ac72547e..fb3ec4dff4d407b5cf3e6da8c62709037354acd2 100644
(file)
--- a/
src/game_bd/bd_graphics.c
+++ b/
src/game_bd/bd_graphics.c
@@
-369,13
+369,13
@@
int gd_drawcave(Bitmap *dest, GdGame *game, boolean force_redraw)
if (!(game->last_element_buffer[y][x] & SKIPPED))
{
/* redraw previous game element on the cave field the new element is moving to */
if (!(game->last_element_buffer[y][x] & SKIPPED))
{
/* redraw previous game element on the cave field the new element is moving to */
- int tile_
old
= game->last_element_buffer[y][x];
+ int tile_
last
= game->last_element_buffer[y][x];
/* only redraw previous game element if it is not collectible (like dirt etc.) */
/* only redraw previous game element if it is not collectible (like dirt etc.) */
- if (is_collectible(tile_
old
))
- tile_
old
= O_SPACE;
+ if (is_collectible(tile_
last
))
+ tile_
last
= O_SPACE;
- struct GraphicInfo_BD *g_old = &graphic_info_bd_object[tile_
old
][frame];
+ struct GraphicInfo_BD *g_old = &graphic_info_bd_object[tile_
last
][frame];
blit_bitmap(g_old->bitmap, dest, g_old->src_x, g_old->src_y, cell_size, cell_size,
sx, sy);
blit_bitmap(g_old->bitmap, dest, g_old->src_x, g_old->src_y, cell_size, cell_size,
sx, sy);