fixed bug with playing two global game sounds as game element sounds
[rocksndiamonds.git] / src / game.c
index a2afc3e3cb157c61f468c2a71132609667895563..8d713df727b83175c5b3a6a0f500fa1d0b76c632 100644 (file)
@@ -13998,7 +13998,8 @@ void BuryPlayer(struct PlayerInfo *player)
     return;
 
   PlayLevelSoundElementAction(jx, jy, player->artwork_element, ACTION_DYING);
-  PlayLevelSound(jx, jy, SND_GAME_LOSING);
+
+  PlaySound(SND_GAME_LOSING);
 
   RemovePlayer(player);
 
@@ -14656,7 +14657,7 @@ static int DigField(struct PlayerInfo *player,
 
        LevelSolved();
 
-       PlayLevelSound(x, y, SND_GAME_SOKOBAN_SOLVING);
+       PlaySound(SND_GAME_SOKOBAN_SOLVING);
       }
     }
     else