diff options
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; } } |
