diff options
| author | cracker64 <cracker642@gmail.com> | 2013-02-28 17:37:16 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-02-28 17:37:16 (GMT) |
| commit | 5873d6958641af21b92fcb039d26c336331f19e7 (patch) | |
| tree | a334e74d7cf79726f5c0a411515bed801ee0333f /src/simulation/elements/BREC.cpp | |
| parent | c65081d3ed44a97cea0f41a63e9ec07cf0feb5f2 (diff) | |
| download | powder-5873d6958641af21b92fcb039d26c336331f19e7.zip powder-5873d6958641af21b92fcb039d26c336331f19e7.tar.gz | |
Going through again.
Diffstat (limited to 'src/simulation/elements/BREC.cpp')
| -rw-r--r-- | src/simulation/elements/BREC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/BREC.cpp b/src/simulation/elements/BREC.cpp index f5ae4a1..d1de90e 100644 --- a/src/simulation/elements/BREC.cpp +++ b/src/simulation/elements/BREC.cpp @@ -54,12 +54,12 @@ int Element_BREC::update(UPDATE_FUNC_ARGS) { if (sim->pv[y/CELL][x/CELL]>10.0f) { - if (parts[i].temp>9000 && sim->pv[y/CELL][x/CELL]>30.0f && 1>rand()%200) + if (parts[i].temp>9000 && sim->pv[y/CELL][x/CELL]>30.0f && !(rand()%200)) { sim->part_change_type(i, x ,y ,PT_EXOT); parts[i].life = 1000; } - parts[i].temp = parts[i].temp + (sim->pv[y/CELL][x/CELL])/8; + parts[i].temp += (sim->pv[y/CELL][x/CELL])/8; } } |
