projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27f82f7
)
removed unused variable
author
Holger Schemel
<info@artsoft.org>
Sat, 24 Feb 2024 23:15:56 +0000
(
00:15
+0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 24 Feb 2024 23:15:56 +0000
(
00:15
+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 62981ec8dafccc0045cae1065122355335c433aa..ffa099864ac8d7cf08a37d04af0e7512f70e18b4 100644
(file)
--- a/
src/game_bd/bd_graphics.c
+++ b/
src/game_bd/bd_graphics.c
@@
-205,7
+205,6
@@
boolean gd_scroll(GdGame *game, boolean exact_scroll, boolean immediate)
boolean out_of_window;
int player_x, player_y, visible_x, visible_y;
boolean changed;
boolean out_of_window;
int player_x, player_y, visible_x, visible_y;
boolean changed;
- int scroll_divisor;
/* max scrolling speed depends on the speed of the cave. */
/* game moves cell_size_game * 1s / cave time pixels in a second. */
/* max scrolling speed depends on the speed of the cave. */
/* game moves cell_size_game * 1s / cave time pixels in a second. */
@@
-232,13
+231,6
@@
boolean gd_scroll(GdGame *game, boolean exact_scroll, boolean immediate)
/* cell_size contains the scaled size, but we need the original. */
changed = FALSE;
/* cell_size contains the scaled size, but we need the original. */
changed = FALSE;
- /* some sort of scrolling speed.
- with larger cells, the divisor must be smaller, so the scrolling faster. */
- scroll_divisor = 256 / cell_size;
-
- /* fine scrolling is 50hz (normal would be 25hz only) */
- scroll_divisor *= 2;
-
if (cave_scroll(visible_x, play_area_w, player_x * cell_size + cell_size / 2 - play_area_w / 2,
exact_scroll, &scroll_x, &scroll_desired_x, scroll_speed))
changed = TRUE;
if (cave_scroll(visible_x, play_area_w, player_x * cell_size + cell_size / 2 - play_area_w / 2,
exact_scroll, &scroll_x, &scroll_desired_x, scroll_speed))
changed = TRUE;