projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f66c38
)
removed unused variables
author
Holger Schemel
<info@artsoft.org>
Sat, 17 Feb 2024 11:45:10 +0000
(12:45 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sun, 18 Feb 2024 15:17:00 +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 96421d4a090af325e798316e98564aca33f75c1b..73b38013f68edeab00ea082d9d0304ae9e00723c 100644
(file)
--- 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;
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)
/* 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. */
/* 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];
{
/* potential movement direction of game element */
int dir = game->dir_buffer[y][x];