summaryrefslogtreecommitdiff
path: root/src/elements/co2.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-08-26 10:56:46 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-08-26 10:56:46 (GMT)
commitefc7565b6fb2958d7b50229178cd59835d06f9a0 (patch)
tree16ea6119e51ab07539975866ded50e56b45ee533 /src/elements/co2.c
parent10f0c6665f81de9634703397b829d2c675910800 (diff)
downloadpowder-efc7565b6fb2958d7b50229178cd59835d06f9a0.zip
powder-efc7565b6fb2958d7b50229178cd59835d06f9a0.tar.gz
More stuff for CO2
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);