X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_em%2Fgraphics.c;h=68f1c297bf6dfae913ddef9b5c8b061ef5ba6db1;hb=7b387b9e5e8095a01c18ea041f19d71be83146b9;hp=a55909afc7540958beaf1909c03a9932f39bf513;hpb=0fa270ea50e806d9af79d08a9bf9386593a4e6cb;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index a55909af..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 ? setup.scroll_delay_value : 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 ? setup.scroll_delay_value : 0) * TILEX; + int offset = game.scroll_delay_value * TILEX; int offset_x = offset; int offset_y = offset; int screen_x_old = screen_x;