projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11f6cf5
)
fixed keeping vertical player position when wrapping in EM engine
author
Holger Schemel
<info@artsoft.org>
Thu, 20 Feb 2020 09:57:27 +0000
(10:57 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 19 May 2020 16:19:59 +0000
(18:19 +0200)
src/game_em/graphics.c
patch
|
blob
|
history
diff --git
a/src/game_em/graphics.c
b/src/game_em/graphics.c
index b36f78cb1981913ba5846552571edfa24f182034..4ea90bd68e701aea885118c3b6931e7ca8ab1fb7 100644
(file)
--- a/
src/game_em/graphics.c
+++ b/
src/game_em/graphics.c
@@
-634,7
+634,13
@@
void RedrawPlayfield_EM(boolean force_redraw)
int screen_yy = VALID_SCREEN_Y(sy);
if (draw_new_player_location_wrap)
+ {
+ // when wrapping around (horizontally), keep vertical player position
+ screen_yy = screen_y;
+
+ // scrolling for wrapping should be faster than for switching players
wait_delay_value /= 4;
+ }
SetVideoFrameDelay(wait_delay_value);