diff options
Diffstat (limited to 'src/simulation/elements/YEST.cpp')
| -rw-r--r-- | src/simulation/elements/YEST.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/YEST.cpp b/src/simulation/elements/YEST.cpp index 99df265..f544192 100644 --- a/src/simulation/elements/YEST.cpp +++ b/src/simulation/elements/YEST.cpp @@ -57,7 +57,7 @@ int Element_YEST::update(UPDATE_FUNC_ARGS) r = pmap[y+ry][x+rx]; if (!r) continue; - if ((r&0xFF)==PT_DYST && 1>(rand()%30) && !sim->legacy_enable) + if ((r&0xFF)==PT_DYST && !(rand()%30) && !sim->legacy_enable) { sim->part_change_type(i,x,y,PT_DYST); } @@ -69,4 +69,4 @@ int Element_YEST::update(UPDATE_FUNC_ARGS) } -Element_YEST::~Element_YEST() {}
\ No newline at end of file +Element_YEST::~Element_YEST() {} |
