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/ISOZ.cpp | |
| parent | 27e3e1251837f5d64e835068d5f5bd5b67b95921 (diff) | |
| download | powder-3d2e59415003c51c0b6dbe764003cc2012ba9ca7.zip powder-3d2e59415003c51c0b6dbe764003cc2012ba9ca7.tar.gz | |
Small modifications part three.
Diffstat (limited to 'src/simulation/elements/ISOZ.cpp')
| -rw-r--r-- | src/simulation/elements/ISOZ.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/ISOZ.cpp b/src/simulation/elements/ISOZ.cpp index 05df489..9f9e9b1 100644 --- a/src/simulation/elements/ISOZ.cpp +++ b/src/simulation/elements/ISOZ.cpp @@ -50,7 +50,7 @@ Element_ISOZ::Element_ISOZ() int Element_ISOZ::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_ISOZ::update(UPDATE_FUNC_ARGS) } -Element_ISOZ::~Element_ISOZ() {}
\ No newline at end of file +Element_ISOZ::~Element_ISOZ() {} |
