added setup option for muting double falling sounds in BD engine
[rocksndiamonds.git] / src / game_bd / main_bd.c
index d2da72f17460aaca33850c709a1e76a297a8466d..c11022b0c57951c6ea2fdfede1b36dc474205e17 100644 (file)
@@ -460,6 +460,13 @@ boolean use_bd_up_down_graphics(void)
          (setup.bd_up_down_graphics == AUTO && !use_native_bd_graphics_engine()));
 }
 
+// check if skipping falling sounds selected in setup menu
+boolean skip_bd_falling_sounds(void)
+{
+  return ((setup.bd_skip_falling_sounds == TRUE) ||
+         (setup.bd_skip_falling_sounds == AUTO && !game.use_native_bd_sound_engine));
+}
+
 Bitmap **GetTitleScreenBitmaps_BD(void)
 {
   Bitmap **title_screen_bitmaps = gd_get_title_screen_bitmaps();