summaryrefslogtreecommitdiff
path: root/src/elements/co2.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-06-21 22:01:32 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-06-22 23:10:39 (GMT)
commit287822229fec43c49f6952797ac249b4558fcb26 (patch)
treeffe0efab7e09db3b062cbd4f9570a049656b1d55 /src/elements/co2.c
parent135e91b84dbc2c49319e73bce63aab2d7a22eb71 (diff)
downloadpowder-287822229fec43c49f6952797ac249b4558fcb26.zip
powder-287822229fec43c49f6952797ac249b4558fcb26.tar.gz
fix compression during fusion
Conflicts: src/powder.c
Diffstat (limited to 'src/elements/co2.c')
-rw-r--r--src/elements/co2.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/elements/co2.c b/src/elements/co2.c
index adf85f5..486269e 100644
--- a/src/elements/co2.c
+++ b/src/elements/co2.c
@@ -50,15 +50,14 @@ int update_CO2(UPDATE_FUNC_ARGS) {
if (rand()%5 < 1)
{
int j;
- kill_part(i);
+ create_part(i,x,y,PT_O2);
+
j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_NEUT); if (j != -1) parts[j].temp = 15000;
if (!(rand()%50)) { j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_ELEC); if (j != -1) parts[j].temp = 15000; }
- j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_O2); if (j != -1) parts[j].temp = 15000;
- if (rand()%1000 < 1) { j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_SING); if (j != -1) { parts[j].temp = 15000; parts[i].life = 3; } }
+ //if (rand()%1000 < 1) { j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_SING); if (j != -1) { parts[j].temp = 15000; parts[i].life = 3; } }
- parts[i].temp += 15000;
+ parts[i].temp = 15000;
pv[y/CELL][x/CELL] += 100;
- return 1;
}
}
return 0;