fixed sound volume (no sound positions) for native BD sound engine
[rocksndiamonds.git] / src / game_bd / bd_sound.c
index 799ff44fa44c8789434c0f6872529fa154beb412..e43af91fd75220eef348b974a62cdf079221bede 100644 (file)
@@ -381,8 +381,8 @@ void gd_sound_play(GdCave *cave, GdSound sound, GdElement element, int x, int y)
       game_bd.game->state_counter == GAME_INT_CAVE_RUNNING)
     return;
 
-  // if no player position specified, use middle of the screen position
-  if (x == -1 && y == -1)
+  // when using native sound engine or if no position specified, use middle screen position
+  if (game.use_native_bd_sound_engine || (x == -1 && y == -1))
   {
     x = get_play_area_w() / 2 + get_scroll_x();
     y = get_play_area_h() / 2 + get_scroll_y();