summaryrefslogtreecommitdiff
path: root/src/elements/co2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/co2.c')
-rw-r--r--src/elements/co2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/elements/co2.c b/src/elements/co2.c
index 9c5463a..e9114a8 100644
--- a/src/elements/co2.c
+++ b/src/elements/co2.c
@@ -9,6 +9,13 @@ int update_CO2(UPDATE_FUNC_ARGS) {
r = pmap[y+ry][x+rx];
if ((r>>8)>=NPART || !r)
continue;
+ if ((r&0xFF)==PT_FIRE){
+ kill_part(r>>8);
+ if(1>(rand()%150)){
+ kill_part(i);
+ return 1;
+ }
+ }
/*if ((r&0xFF)==PT_CNCT && 1>(rand()%500)) Concrete+Water to paste, not very popular
{
part_change_type(i,x,y,PT_PSTE);