fixed bug with limiting forced scroll delay value to lower default value
authorHolger Schemel <info@artsoft.org>
Sat, 14 Oct 2023 09:46:08 +0000 (11:46 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 14 Oct 2023 09:46:08 +0000 (11:46 +0200)
graphics/gfx_classic/RocksDF.png
src/game.c

index 9bf2b6122f5194ab90e2f6218de7712fc995371a..550512200fc93d48af93aafd8ba25b9f58a37f8c 100644 (file)
Binary files a/graphics/gfx_classic/RocksDF.png and b/graphics/gfx_classic/RocksDF.png differ
index 09c7fa096b0d8edfae177c88fac18735f44a343f..53410d5ace4c808511e21dad4c6e2e8cf04e6ada 100644 (file)
@@ -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++)