summaryrefslogtreecommitdiff
path: root/src/simulation/elements/MERC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/MERC.cpp')
-rw-r--r--src/simulation/elements/MERC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/MERC.cpp b/src/simulation/elements/MERC.cpp
index 655a8b9..57c6481 100644
--- a/src/simulation/elements/MERC.cpp
+++ b/src/simulation/elements/MERC.cpp
@@ -62,7 +62,7 @@ int Element_MERC::update(UPDATE_FUNC_ARGS)
r = pmap[y+ry][x+rx];
if (!r || (parts[i].tmp >=maxtmp))
continue;
- if ((r&0xFF)==PT_MERC&&33>=rand()/(RAND_MAX/100)+1)
+ if ((r&0xFF)==PT_MERC&& !(rand()%3))
{
if ((parts[i].tmp + parts[r>>8].tmp + 1) <= maxtmp)
{