diff options
| author | cracker64 <cracker642@gmail.com> | 2013-02-27 17:08:10 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-02-27 17:08:10 (GMT) |
| commit | 3d2e59415003c51c0b6dbe764003cc2012ba9ca7 (patch) | |
| tree | 98bf2347be2a5ada02c4a2297b3e1c88acf72e21 /src/simulation/elements/ISZS.cpp | |
| parent | 27e3e1251837f5d64e835068d5f5bd5b67b95921 (diff) | |
| download | powder-3d2e59415003c51c0b6dbe764003cc2012ba9ca7.zip powder-3d2e59415003c51c0b6dbe764003cc2012ba9ca7.tar.gz | |
Small modifications part three.
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() {} |
