From: Holger Schemel Date: Wed, 18 Sep 2024 19:38:05 +0000 (+0200) Subject: changed BD engine to match new GDash code (cave speed) X-Git-Tag: 4.4.0.0-test-4~214 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a5c9ae90ae610def4c7a07db563a673090ed5513;p=rocksndiamonds.git changed BD engine to match new GDash code (cave speed) --- diff --git a/src/game_bd/bd_cave.c b/src/game_bd/bd_cave.c index 2b2023c2..38b6e9c7 100644 --- a/src/game_bd/bd_cave.c +++ b/src/game_bd/bd_cave.c @@ -1288,7 +1288,15 @@ void gd_cave_setup_for_game(GdCave *cave) cave->hammered_reappear = gd_cave_map_new(cave, int); // set speed + + // set extra cave speed delay for certain game elements cave_set_ckdelay_extra_for_animation(cave); + + if (game_bd.game == NULL || !game_bd.game->use_old_engine) // new game engine only + { + // set initial cave speed according to scheduling type (using the above extra delay) + gd_update_scheduling_cave_speed(cave); + } } // Count diamonds in a cave, and set diamonds_needed accordingly.