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.

This commit is contained in:
Cate 2011-09-23 02:27:10 +08:00 committed by Simon Robertshaw
parent 07f8087907
commit 026e613ac6

View File

@ -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--;