From 824941b74199bfba90757abecf757707095b1af2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 8 Dec 2024 18:21:04 +0100 Subject: [PATCH] fixed playing diamond sounds at wrap-around BD cave positions --- src/game_bd/bd_caveengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 6ac86de1..38ddc094 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -1172,7 +1172,7 @@ static GdElement player_eat_element(GdCave *cave, const GdElement element, int x case O_DIAMOND: case O_FLYING_DIAMOND: // prevent diamond sounds for O_SKELETON (see below) - if (x != -1 && y != -1) + if (x != -1 || y != -1) gd_sound_play(cave, (element == O_DIAMOND ? GD_S_DIAMOND_COLLECTING : GD_S_FLYING_DIAMOND_COLLECTING), element, x, y); -- 2.34.1