summaryrefslogtreecommitdiff
path: root/src/elements/bomb.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-08-20 19:41:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-08-22 00:02:02 (GMT)
commit75cb924bd9d0525646bbdabf8959b58e149b7442 (patch)
treebd6c6cd9bf74c72b176f5a2915a95bb5ed36300a /src/elements/bomb.c
parent27a95c7684de3cb568e27193eec7fdffd2a7f23b (diff)
downloadpowder-75cb924bd9d0525646bbdabf8959b58e149b7442.zip
powder-75cb924bd9d0525646bbdabf8959b58e149b7442.tar.gz
Fix electrode when in replace mode or specific delete mode
Also fix bomb when SLALT != 0
Diffstat (limited to 'src/elements/bomb.c')
-rw-r--r--src/elements/bomb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/bomb.c b/src/elements/bomb.c
index 8115a88..de10fcc 100644
--- a/src/elements/bomb.c
+++ b/src/elements/bomb.c
@@ -44,7 +44,7 @@ int update_BOMB(UPDATE_FUNC_ARGS) {
for (nxi=-rad; nxi<=rad; nxi++)
if ((pow(nxi,2))/(pow(rad,2))+(pow(nxj,2))/(pow(rad,2))<=1)
if ((pmap[y+nxj][x+nxi]&0xFF)!=PT_DMND && (pmap[y+nxj][x+nxi]&0xFF)!=PT_CLNE && (pmap[y+nxj][x+nxi]&0xFF)!=PT_PCLN && (pmap[y+nxj][x+nxi]&0xFF)!=PT_BCLN) {
- delete_part(x+nxi, y+nxj);//it SHOULD kill anything but the exceptions above, doesn't seem to always work
+ delete_part(x+nxi, y+nxj, 0);//it SHOULD kill anything but the exceptions above, doesn't seem to always work
pv[(y+nxj)/CELL][(x+nxi)/CELL] += 0.1f;
nb = create_part(-1, x+nxi, y+nxj, PT_BOMB);
if (nb!=-1) {