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/C5.cpp | |
| parent | c65081d3ed44a97cea0f41a63e9ec07cf0feb5f2 (diff) | |
| download | powder-5873d6958641af21b92fcb039d26c336331f19e7.zip powder-5873d6958641af21b92fcb039d26c336331f19e7.tar.gz | |
Going through again.
Diffstat (limited to 'src/simulation/elements/C5.cpp')
| -rw-r--r-- | src/simulation/elements/C5.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/C5.cpp b/src/simulation/elements/C5.cpp index 28e2055..c971ce0 100644 --- a/src/simulation/elements/C5.cpp +++ b/src/simulation/elements/C5.cpp @@ -59,7 +59,7 @@ int Element_C5::update(UPDATE_FUNC_ARGS) continue; if (((r&0xFF)!=PT_C5 && parts[r>>8].temp<100 && sim->elements[r&0xFF].HeatConduct && ((r&0xFF)!=PT_HSWC||parts[r>>8].life==10)) || (r&0xFF)==PT_HFLM) { - if (1>rand()%6) + if (!(rand()%6)) { sim->part_change_type(i,x,y,PT_HFLM); parts[r>>8].temp = parts[i].temp = 0; @@ -72,4 +72,4 @@ int Element_C5::update(UPDATE_FUNC_ARGS) } -Element_C5::~Element_C5() {}
\ No newline at end of file +Element_C5::~Element_C5() {} |
