summaryrefslogtreecommitdiff
path: root/src/simulation/elements/SPNG.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-28 11:40:18 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-28 11:40:18 (GMT)
commit5ded005b0c17d8e4c1799733ee63810c9e9f7976 (patch)
tree9e4a6314558483a9db5319cc488b687f65c9c326 /src/simulation/elements/SPNG.cpp
parent91ec4d112567e54a7427e0c16ee14395d3d813f5 (diff)
downloadpowder-5ded005b0c17d8e4c1799733ee63810c9e9f7976.zip
powder-5ded005b0c17d8e4c1799733ee63810c9e9f7976.tar.gz
Correct proportions of CO2 and WATR when GEL/SPNG is absorbing BUBW
Diffstat (limited to 'src/simulation/elements/SPNG.cpp')
-rw-r--r--src/simulation/elements/SPNG.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/simulation/elements/SPNG.cpp b/src/simulation/elements/SPNG.cpp
index dc4c711..712f727 100644
--- a/src/simulation/elements/SPNG.cpp
+++ b/src/simulation/elements/SPNG.cpp
@@ -75,10 +75,7 @@ int Element_SPNG::update(UPDATE_FUNC_ARGS)
if ((r&0xFF)==PT_CBNW&&33>=rand()/(RAND_MAX/100)+1)
{
parts[i].life++;
- if (rand()%4)
- sim->kill_part(r>>8);
- else
- sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2);
+ sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2);
}
if ((r&0xFF)==PT_PSTE&&33>=rand()/(RAND_MAX/100)+1)
{