From da12cc6d46857bcc0534012de262fd0294b7ee69 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 23 Jan 2013 12:38:53 +0000 Subject: [PATCH] Change to pistons, piston push length is base-1 blocks --- src/simulation/elements/PSTN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/PSTN.cpp b/src/simulation/elements/PSTN.cpp index 361f103ef..a911f4862 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) {