diff options
Diffstat (limited to 'src/simulation/elements/ISZS.cpp')
| -rw-r--r-- | src/simulation/elements/ISZS.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/ISZS.cpp b/src/simulation/elements/ISZS.cpp index b12f34c..3ee82cb 100644 --- a/src/simulation/elements/ISZS.cpp +++ b/src/simulation/elements/ISZS.cpp @@ -50,7 +50,7 @@ Element_ISZS::Element_ISZS() int Element_ISZS::update(UPDATE_FUNC_ARGS) { // for both ISZS and ISOZ float rr, rrr; - if (1>rand()%200 && ((int)(-4.0f*(sim->pv[y/CELL][x/CELL])))>(rand()%1000)) + if (!(rand()%200) && ((int)(-4.0f*(sim->pv[y/CELL][x/CELL])))>(rand()%1000)) { sim->create_part(i, x, y, PT_PHOT); rr = (rand()%228+128)/127.0f; @@ -62,4 +62,4 @@ int Element_ISZS::update(UPDATE_FUNC_ARGS) } -Element_ISZS::~Element_ISZS() {}
\ No newline at end of file +Element_ISZS::~Element_ISZS() {} |
