From: Holger Schemel Date: Sat, 17 Feb 2024 11:45:10 +0000 (+0100) Subject: removed unused variables X-Git-Tag: 4.4.0.0-test-1~354 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c14ad49b74125ca9f908ad5d20d78922e9295ef5;p=rocksndiamonds.git removed unused variables --- diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index 96421d4a..73b38013 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -300,7 +300,7 @@ int gd_drawcave(Bitmap *dest, GdGame *game, boolean force_redraw) boolean show_flash = FALSE; boolean redraw_all = force_redraw; int scroll_y_aligned = scroll_y; - int x, y, xd, yd; + int x, y; /* force redraw if maximum number of cycles has changed (to redraw moving elements) */ if (game->itermax != game->itermax_last) @@ -328,9 +328,9 @@ int gd_drawcave(Bitmap *dest, GdGame *game, boolean force_redraw) /* here we draw all cells to be redrawn. we do not take scrolling area into consideration - sdl will do the clipping. */ - for (y = cave->y1, yd = 0; y <= cave->y2; y++, yd++) + for (y = cave->y1; y <= cave->y2; y++) { - for (x = cave->x1, xd = 0; x <= cave->x2; x++, xd++) + for (x = cave->x1; x <= cave->x2; x++) { /* potential movement direction of game element */ int dir = game->dir_buffer[y][x];