added checking availability of level specific colors in level editor
[rocksndiamonds.git] / src / game_bd / bd_caveengine.c
index ee1b4ee2f9740ba97664dba40ad1a5324e59b0d3..6d0e3fcd2c13614bfa7ad887f9d2c05f1fad1cda 100644 (file)
@@ -136,7 +136,7 @@ static inline boolean el_can_fall(const int element)
 static void play_sound_of_element(GdCave *cave, GdElement element, int x, int y)
 {
   // check if sound should be skipped for falling elements (and only be played on impact)
-  if (el_can_fall(element) && skip_bd_falling_sounds())
+  if (el_can_fall(element) && !use_bd_falling_sounds())
     return;
 
   // stone and diamond fall sounds.