From dd30cbeeb5882c41bffa228de7ee87e56d820610 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 15 Sep 2024 21:34:24 +0200 Subject: [PATCH] changed BD engine to match new GDash code (pneumatic hammer sound) --- src/game_bd/bd_caveengine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index e7c3263b..5f8c5b7e 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -2330,6 +2330,10 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, // the active pneumatic hammer itself case O_PNEUMATIC_ACTIVE_RIGHT: case O_PNEUMATIC_ACTIVE_LEFT: + // pneumatic hammer sound + if (cave->pneumatic_hammer_active_delay > 0) + gd_sound_play(cave, GD_S_PNEUMATIC_HAMMER, O_PNEUMATIC_HAMMER, -1, -1); + if (cave->pneumatic_hammer_active_delay == 0) { GdElement new_elem; @@ -3938,10 +3942,6 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, play_sound_of_element(cave, O_AMOEBA, -1, -1); } - // pneumatic hammer sound - overrides everything. - if (cave->pneumatic_hammer_active_delay > 0) - gd_sound_play(cave, GD_S_PNEUMATIC_HAMMER, O_PNEUMATIC_HAMMER, -1, -1); - // ============================================================================ // CAVE VARIABLES -- 2.34.1