From daccfca0344681be72d873dc94cb74ee102ec388 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 13 Sep 2024 00:32:10 +0200 Subject: [PATCH] minor changes --- src/game_bd/bd_caveengine.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 2ea68c38..919c59a2 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -712,8 +712,8 @@ static inline void move(GdCave *cave, const int x, const int y, store(cave, x, y, O_SPACE); } -// increment a cave element; can be used for elements which are one after -// the other, for example bladder1, bladder2, bladder3... +// increment a cave element; can be used for elements which are one after the other, +// for example, bladder1, bladder2, bladder3... static inline void next(GdCave *cave, const int x, const int y) { (*getp(cave, x, y))++; @@ -736,7 +736,7 @@ static inline void unscan(GdCave *cave, const int x, const int y) // and a nitro pack explosion triggered. static void cell_explode(GdCave *cave, int x, int y, GdElement explode_to) { - if (non_explodable (cave, x, y)) + if (non_explodable(cave, x, y)) return; if (cave->voodoo_any_hurt_kills_player && get(cave, x, y) == O_VOODOO) @@ -791,12 +791,12 @@ static void voodoo_explode(GdCave *cave, int x, int y) { int xx, yy; + if (cave->voodoo_any_hurt_kills_player) + cave->voodoo_touched = TRUE; + // the processing of an explosion took pretty much time: processing 3x3 = 9 elements cave->ckdelay += 1000; - gd_sound_play(cave, GD_S_VOODOO_EXPLODING, get(cave, x, y), x, y); - if (cave->voodoo_any_hurt_kills_player) - cave->voodoo_touched = TRUE; // voodoo explodes to 3x3 steel for (yy = y - 1; yy <= y + 1; yy++) -- 2.34.1