diff options
| author | Jacob1 <jfu614@gmail.com> | 2012-03-28 20:13:49 (GMT) |
|---|---|---|
| committer | Jacob1 <jfu614@gmail.com> | 2012-05-24 14:37:19 (GMT) |
| commit | 1c7fdb0c26d8bca5a1cb13a790090b87c3d809aa (patch) | |
| tree | 2bbf4203e7449b154f02fb64f13c1ac817b4c30c /src/elements/co2.c | |
| parent | be2fe943c049d479bec9c476e196037678e05b32 (diff) | |
| download | powder-1c7fdb0c26d8bca5a1cb13a790090b87c3d809aa.zip powder-1c7fdb0c26d8bca5a1cb13a790090b87c3d809aa.tar.gz | |
oxygen fusion, fix two small bugs
Diffstat (limited to 'src/elements/co2.c')
| -rw-r--r-- | src/elements/co2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/co2.c b/src/elements/co2.c index 77a92b0..3f73288 100644 --- a/src/elements/co2.c +++ b/src/elements/co2.c @@ -51,10 +51,11 @@ int update_CO2(UPDATE_FUNC_ARGS) { j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_NEUT); if (j != -1) parts[j].temp = 15000; 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; - j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_SING); if (j != -1) { parts[j].temp = 15000; parts[i].life = rand()%100+450; } + 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; pv[y/CELL][x/CELL] += 100; + return 1; } } return 0; |
