diff options
| author | cracker64 <cracker642@gmail.com> | 2013-02-27 22:20:05 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-02-27 22:20:05 (GMT) |
| commit | 08d1a68ce091b6ba53788224fd1bda92c1895ca6 (patch) | |
| tree | 09593de4276750ce9abf203edb08741947ba7ab6 /src/simulation/elements/DEUT.cpp | |
| parent | 3d2e59415003c51c0b6dbe764003cc2012ba9ca7 (diff) | |
| download | powder-08d1a68ce091b6ba53788224fd1bda92c1895ca6.zip powder-08d1a68ce091b6ba53788224fd1bda92c1895ca6.tar.gz | |
More fixes.
Diffstat (limited to 'src/simulation/elements/DEUT.cpp')
| -rw-r--r-- | src/simulation/elements/DEUT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/DEUT.cpp b/src/simulation/elements/DEUT.cpp index b8209e4..98f27a5 100644 --- a/src/simulation/elements/DEUT.cpp +++ b/src/simulation/elements/DEUT.cpp @@ -66,7 +66,7 @@ int Element_DEUT::update(UPDATE_FUNC_ARGS) r = pmap[y+ry][x+rx]; if (!r || (parts[i].life >=maxlife)) continue; - if ((r&0xFF)==PT_DEUT&&33>=rand()/(RAND_MAX/100)+1) + if ((r&0xFF)==PT_DEUT&& !(rand()%3)) { if ((parts[i].life + parts[r>>8].life + 1) <= maxlife) { @@ -146,4 +146,4 @@ int Element_DEUT::graphics(GRAPHICS_FUNC_ARGS) } -Element_DEUT::~Element_DEUT() {}
\ No newline at end of file +Element_DEUT::~Element_DEUT() {} |
