diff options
| author | Jacob1 <jfu614@gmail.com> | 2012-06-21 22:01:32 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-06-22 23:10:39 (GMT) |
| commit | 287822229fec43c49f6952797ac249b4558fcb26 (patch) | |
| tree | ffe0efab7e09db3b062cbd4f9570a049656b1d55 /src/elements/h2.c | |
| parent | 135e91b84dbc2c49319e73bce63aab2d7a22eb71 (diff) | |
| download | powder-287822229fec43c49f6952797ac249b4558fcb26.zip powder-287822229fec43c49f6952797ac249b4558fcb26.tar.gz | |
fix compression during fusion
Conflicts:
src/powder.c
Diffstat (limited to 'src/elements/h2.c')
| -rw-r--r-- | src/elements/h2.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/elements/h2.c b/src/elements/h2.c index 86c3be3..5be3ecc 100644 --- a/src/elements/h2.c +++ b/src/elements/h2.c @@ -58,14 +58,13 @@ int update_H2(UPDATE_FUNC_ARGS) { int j; float temp = parts[i].temp; - part_change_type(i,x,y,PT_PLSM); - parts[i].life = rand()%150+50; + create_part(i,x,y,PT_NBLE); + j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_NEUT); if (j != -1) parts[j].temp = temp; if (!(rand()%10)) { j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_ELEC); if (j != -1) parts[j].temp = temp; } - j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_PHOT); - if (j != -1) { parts[j].ctype = 0xFFFF00; parts[j].temp = temp; } + j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_PHOT); if (j != -1) { parts[j].ctype = 0xFFFF00; parts[j].temp = temp; } - j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_NBLE); if (j != -1) parts[j].temp = temp; + j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_PLSM); if (j != -1) parts[j].temp = temp; if (rand()%2) { @@ -73,7 +72,7 @@ int update_H2(UPDATE_FUNC_ARGS) if (j != -1) { parts[j].tmp = 1; parts[j].temp = temp; } } - parts[i].temp += 750+rand()%500; + parts[i].temp = temp+750+rand()%500; pv[y/CELL][x/CELL] += 30; } } |
