projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae5bd9
)
white space changes
author
Holger Schemel
<holger.schemel@virtion.de>
Sun, 15 Sep 2024 17:52:39 +0000
(19:52 +0200)
committer
Holger Schemel
<holger.schemel@virtion.de>
Sun, 15 Sep 2024 17:52:39 +0000
(19:52 +0200)
src/game_bd/bd_caveengine.c
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_caveengine.c
b/src/game_bd/bd_caveengine.c
index b94b35606c1ee72a15652f00353ac3de4d6f1f0a..76ba617f6b0a3ea4bc6b918a110de3b8535abeab 100644
(file)
--- a/
src/game_bd/bd_caveengine.c
+++ b/
src/game_bd/bd_caveengine.c
@@
-743,15
+743,21
@@
static void cell_explode(GdCave *cave, int x, int y, GdElement explode_to)
cave->voodoo_touched = TRUE;
if (get(cave, x, y) == O_VOODOO && !cave->voodoo_disappear_in_explosion)
+ {
// voodoo turns into a time penalty
store(cave, x, y, O_TIME_PENALTY);
+ }
else if (get(cave, x, y) == O_NITRO_PACK ||
get(cave, x, y) == O_NITRO_PACK_F)
+ {
// nitro pack inside an explosion - it is now triggered
store(cave, x, y, O_NITRO_PACK_EXPLODE);
+ }
else
+ {
// for everything else
store(cave, x, y, explode_to);
+ }
}
// A creature at (x, y) explodes to a 3x3 square.