From: Holger Schemel Date: Thu, 12 Sep 2024 22:32:10 +0000 (+0200) Subject: minor changes X-Git-Tag: 4.4.0.0-test-4~252 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=daccfca0344681be72d873dc94cb74ee102ec388;p=rocksndiamonds.git minor changes --- 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++)