X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=68f1c297bf6dfae913ddef9b5c8b061ef5ba6db1;hb=4231c290a878b5fb95bffdf78b5486359ce1268f;hp=b443991d9e726d4e34cc38cbea9bbad15fe1631a;hpb=9f7cd608c28ded86b2c2e649c776220ae27df038;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index b443991d..68f1c297 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -522,7 +522,7 @@ void DrawRelocatePlayer(struct PlayerInfo *player, boolean quick_relocation) if (quick_relocation) { - int offset = (setup.scroll_delay ? 3 : 0); + int offset = game.scroll_delay_value; if (!IN_VIS_FIELD(SCREENX(jx), SCREENY(jy))) { @@ -726,7 +726,7 @@ void RedrawPlayfield_EM(boolean force_redraw) int player_nr = game_em.last_moving_player; #endif int stepsize = TILEX / 8; - int offset = (setup.scroll_delay ? 3 : 0) * TILEX; + int offset = game.scroll_delay_value * TILEX; int offset_x = offset; int offset_y = offset; int screen_x_old = screen_x;