summaryrefslogtreecommitdiff
path: root/src/simulation/elements
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-23 02:48:51 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-23 02:48:51 (GMT)
commit43540eb7e42facfd1dfa8eb213d8ee91ad35fa43 (patch)
tree86dae3611218cc97b54532a35b46f3eb66ecaf53 /src/simulation/elements
parent625766028d8eb7bb6dcd28962a172546226a597e (diff)
downloadpowder-43540eb7e42facfd1dfa8eb213d8ee91ad35fa43.zip
powder-43540eb7e42facfd1dfa8eb213d8ee91ad35fa43.tar.gz
Add back replace mode and specific delete *
* only usable by Lua
Diffstat (limited to 'src/simulation/elements')
-rw-r--r--src/simulation/elements/BOMB.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/BOMB.cpp b/src/simulation/elements/BOMB.cpp
index ad1a193..303ceb5 100644
--- a/src/simulation/elements/BOMB.cpp
+++ b/src/simulation/elements/BOMB.cpp
@@ -69,7 +69,7 @@ int Element_BOMB::update(UPDATE_FUNC_ARGS)
if ((pow((float)nxi,2))/(pow((float)rad,2))+(pow((float)nxj,2))/(pow((float)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 && (pmap[y+nxj][x+nxi]&0xFF)!=PT_VIBR)
{
- sim->delete_part(x+nxi, y+nxj, 0);
+ sim->delete_part(x+nxi, y+nxj);
sim->pv[(y+nxj)/CELL][(x+nxi)/CELL] += 0.1f;
nb = sim->create_part(-3, x+nxi, y+nxj, PT_EMBR);
if (nb!=-1)