From: Holger Schemel Date: Thu, 20 Feb 2020 09:57:27 +0000 (+0100) Subject: fixed keeping vertical player position when wrapping in EM engine X-Git-Tag: 4.2.0.0~84 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b6f8112353275ea2af3020640fe5ffd4ba5a1889;p=rocksndiamonds.git fixed keeping vertical player position when wrapping in EM engine --- diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index b36f78cb..4ea90bd6 100644 --- 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);