changed BD engine to match new GDash code (cave speed)
authorHolger Schemel <holger.schemel@virtion.de>
Wed, 18 Sep 2024 19:38:05 +0000 (21:38 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Wed, 18 Sep 2024 21:44:09 +0000 (23:44 +0200)
src/game_bd/bd_cave.c

index 2b2023c2fc1f767825c5deaaec128a156587113f..38b6e9c7b648d68190377f5f53e7890fb41f9871 100644 (file)
@@ -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.