summaryrefslogtreecommitdiff
path: root/src/simulation/elements
diff options
context:
space:
mode:
authorSimon 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)
commitda12cc6d46857bcc0534012de262fd0294b7ee69 (patch)
treefba4988412e4d281debb9bffddf9f2bd7540da77 /src/simulation/elements
parenta7aa26fa1a203b97eb2a4a1a00eb18384aab9f2c (diff)
downloadpowder-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.cpp2
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) {