diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-01-23 12:38:53 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-01-23 12:38:53 (GMT) |
| commit | da12cc6d46857bcc0534012de262fd0294b7ee69 (patch) | |
| tree | fba4988412e4d281debb9bffddf9f2bd7540da77 /src/simulation/elements | |
| parent | a7aa26fa1a203b97eb2a4a1a00eb18384aab9f2c (diff) | |
| download | powder-da12cc6d46857bcc0534012de262fd0294b7ee69.zip powder-da12cc6d46857bcc0534012de262fd0294b7ee69.tar.gz | |
Change to pistons, piston push length is base-1 blocks
Diffstat (limited to 'src/simulation/elements')
| -rw-r--r-- | src/simulation/elements/PSTN.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/PSTN.cpp b/src/simulation/elements/PSTN.cpp index 361f103..a911f48 100644 --- a/src/simulation/elements/PSTN.cpp +++ b/src/simulation/elements/PSTN.cpp @@ -94,7 +94,7 @@ int Element_PSTN::update(UPDATE_FUNC_ARGS) { bool foundEnd = false; int pistonEndX, pistonEndY; - int pistonCount = 1; + int pistonCount = 0; int newSpace = 0; int armCount = 0; for (nxx = 0, nyy = 0, nxi = directionX, nyi = directionY; pistonCount < maxSize; nyy += nyi, nxx += nxi) { |
