From: Holger Schemel Date: Sat, 17 Feb 2024 13:13:51 +0000 (+0100) Subject: minor code cleanup X-Git-Tag: 4.4.0.0-test-1~347 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=47d7c1f8d4fc0c0a4b97b1f4181440763b57d8d7;p=rocksndiamonds.git minor code cleanup --- diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index d2b9d174..fb3ec4df 100644 --- 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 */ - 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.) */ - 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);