From: Holger Schemel Date: Sat, 14 Oct 2023 09:46:08 +0000 (+0200) Subject: fixed bug with limiting forced scroll delay value to lower default value X-Git-Tag: 4.3.7.0~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b4962aefbc6cf3356112afe7cf421e073360de14;p=rocksndiamonds.git fixed bug with limiting forced scroll delay value to lower default value --- diff --git a/graphics/gfx_classic/RocksDF.png b/graphics/gfx_classic/RocksDF.png index 9bf2b612..55051220 100644 Binary files a/graphics/gfx_classic/RocksDF.png and b/graphics/gfx_classic/RocksDF.png differ diff --git a/src/game.c b/src/game.c index 09c7fa09..53410d5a 100644 --- a/src/game.c +++ b/src/game.c @@ -3474,8 +3474,9 @@ static void InitGameEngine(void) level.game_engine_type == GAME_ENGINE_TYPE_EM && !setup.forced_scroll_delay ? 0 : setup.scroll_delay ? setup.scroll_delay_value : 0); - game.scroll_delay_value = - MIN(MAX(MIN_SCROLL_DELAY, game.scroll_delay_value), MAX_SCROLL_DELAY); + if (game.forced_scroll_delay_value == -1) + game.scroll_delay_value = + MIN(MAX(MIN_SCROLL_DELAY, game.scroll_delay_value), MAX_SCROLL_DELAY); // ---------- initialize game engine snapshots ------------------------------ for (i = 0; i < MAX_PLAYERS; i++)