summaryrefslogtreecommitdiff
path: root/src/simulation/elements/WTRV.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/WTRV.cpp')
-rw-r--r--src/simulation/elements/WTRV.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/WTRV.cpp b/src/simulation/elements/WTRV.cpp
index fb72db8..d58b371 100644
--- a/src/simulation/elements/WTRV.cpp
+++ b/src/simulation/elements/WTRV.cpp
@@ -57,7 +57,7 @@ int Element_WTRV::update(UPDATE_FUNC_ARGS)
r = pmap[y+ry][x+rx];
if (!r)
continue;
- if (((r&0xFF)==PT_RBDM||(r&0xFF)==PT_LRBD) && !sim->legacy_enable && parts[i].temp>(273.15f+12.0f) && 1>(rand()%500))
+ if (((r&0xFF)==PT_RBDM||(r&0xFF)==PT_LRBD) && !sim->legacy_enable && parts[i].temp>(273.15f+12.0f) && !(rand()%500))
{
sim->part_change_type(i,x,y,PT_FIRE);
parts[i].life = 4;
@@ -70,4 +70,4 @@ int Element_WTRV::update(UPDATE_FUNC_ARGS)
}
-Element_WTRV::~Element_WTRV() {} \ No newline at end of file
+Element_WTRV::~Element_WTRV() {}