From: Holger Schemel Date: Sun, 8 Dec 2024 17:21:04 +0000 (+0100) Subject: fixed playing diamond sounds at wrap-around BD cave positions X-Git-Tag: 4.4.0.0-test-6~25 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=824941b74199bfba90757abecf757707095b1af2;p=rocksndiamonds.git fixed playing diamond sounds at wrap-around BD cave positions --- 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);