projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4872058
)
removed needless delay when relocating the player
author
Holger Schemel
<info@artsoft.org>
Sun, 2 Feb 2020 20:40:13 +0000
(21:40 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 19 May 2020 16:12:58 +0000
(18:12 +0200)
src/game_em/graphics.c
patch
|
blob
|
history
diff --git
a/src/game_em/graphics.c
b/src/game_em/graphics.c
index d103de7d7df0029cbe2685a5e44073c2a12f19e4..ab9158bff58e32df8787daa1c4aa6ec5c65a1c4f 100644
(file)
--- a/
src/game_em/graphics.c
+++ b/
src/game_em/graphics.c
@@
-622,8
+622,6
@@
void RedrawPlayfield_EM(boolean force_redraw)
if (draw_new_player_location && !quick_relocation)
{
if (draw_new_player_location && !quick_relocation)
{
- unsigned int game_frame_delay_value = getGameFrameDelay_EM(20);
- int wait_delay_value = game_frame_delay_value;
int screen_xx = VALID_SCREEN_X(sx);
int screen_yy = VALID_SCREEN_Y(sy);
int screen_xx = VALID_SCREEN_X(sx);
int screen_yy = VALID_SCREEN_Y(sy);
@@
-670,8
+668,6
@@
void RedrawPlayfield_EM(boolean force_redraw)
BlitScreenToBitmap_EM(backbuffer);
BackToFront_EM();
BlitScreenToBitmap_EM(backbuffer);
BackToFront_EM();
- Delay(wait_delay_value);
-
/* scroll second step to align at full tile size */
screen_x -= dxx;
screen_y -= dyy;
/* scroll second step to align at full tile size */
screen_x -= dxx;
screen_y -= dyy;
@@
-683,8
+679,6
@@
void RedrawPlayfield_EM(boolean force_redraw)
BlitScreenToBitmap_EM(backbuffer);
BackToFront_EM();
BlitScreenToBitmap_EM(backbuffer);
BackToFront_EM();
-
- Delay(wait_delay_value);
}
screen_x_old = screen_x;
}
screen_x_old = screen_x;