diff options
| author | cracker64 <cracker642@gmail.com> | 2013-02-28 05:40:36 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-02-28 05:40:36 (GMT) |
| commit | c65081d3ed44a97cea0f41a63e9ec07cf0feb5f2 (patch) | |
| tree | 90744a56bc618c12aab5ef617445b283ce2d6d57 /src/simulation/elements/PRTO.cpp | |
| parent | 08d1a68ce091b6ba53788224fd1bda92c1895ca6 (diff) | |
| download | powder-c65081d3ed44a97cea0f41a63e9ec07cf0feb5f2.zip powder-c65081d3ed44a97cea0f41a63e9ec07cf0feb5f2.tar.gz | |
Finished first pass-through for all elements.
Will get a few more places later.
Diffstat (limited to 'src/simulation/elements/PRTO.cpp')
| -rw-r--r-- | src/simulation/elements/PRTO.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/simulation/elements/PRTO.cpp b/src/simulation/elements/PRTO.cpp index 4a51657..e3d6938 100644 --- a/src/simulation/elements/PRTO.cpp +++ b/src/simulation/elements/PRTO.cpp @@ -70,11 +70,8 @@ int Element_PRTO::update(UPDATE_FUNC_ARGS) { r = pmap[y+ry][x+rx]; if (!r) - fe = 1; - if (r) - continue; - if (!r) { + fe = 1; for ( nnx =0 ; nnx<80; nnx++) { int randomness = (count + rand()%3-1 + 4)%8;//add -1,0,or 1 to count @@ -192,4 +189,4 @@ int Element_PRTO::graphics(GRAPHICS_FUNC_ARGS) } -Element_PRTO::~Element_PRTO() {}
\ No newline at end of file +Element_PRTO::~Element_PRTO() {} |
