From 026e613ac62950e8fe0f80069093a224fe8db4c8 Mon Sep 17 00:00:00 2001 From: Cate Date: Fri, 23 Sep 2011 02:27:10 +0800 Subject: [PATCH] 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. --- src/elements/cbnw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/elements/cbnw.c b/src/elements/cbnw.c index 478fba73d..80bc19a13 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--;