summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorCate <cate@cate-6sh2.(none)>2011-09-22 18:27:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-09-23 20:04:08 (GMT)
commit026e613ac62950e8fe0f80069093a224fe8db4c8 (patch)
tree0f11e2e1e1612ea3986fac17ac9506617a7950ab /src/elements
parent07f808790732854cd258d1e0d09ef9b3fd8cf142 (diff)
downloadpowder-026e613ac62950e8fe0f80069093a224fe8db4c8.zip
powder-026e613ac62950e8fe0f80069093a224fe8db4c8.tar.gz
One If added to Carb water that always explodes when under -0.5 pressure. Even strong explosions don't seem to cause this when water's held in containers, which -should- limit this to vacuum or wind effects. Still testing with.
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/cbnw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/elements/cbnw.c b/src/elements/cbnw.c
index 478fba7..80bc19a 100644
--- a/src/elements/cbnw.c
+++ b/src/elements/cbnw.c
@@ -11,6 +11,12 @@ int update_CBNW(UPDATE_FUNC_ARGS) {
parts[i].ctype = 5;
pv[y/CELL][x/CELL] += 0.5f;
}
+ else if(pv[y/CELL][x/CELL]<=-0.5)
+ {
+ part_change_type(i,x,y,PT_CO2);
+ parts[i].ctype = 5;
+ pv[y/CELL][x/CELL] += 0.5f;
+ }
}
if (parts[i].tmp>0)
parts[i].tmp--;