From: Holger Schemel Date: Sun, 15 Sep 2024 19:34:24 +0000 (+0200) Subject: changed BD engine to match new GDash code (pneumatic hammer sound) X-Git-Tag: 4.4.0.0-test-4~237 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=dd30cbeeb5882c41bffa228de7ee87e56d820610;p=rocksndiamonds.git changed BD engine to match new GDash code (pneumatic hammer sound) --- 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