mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +02:00
Change to pistons, piston push length is base-1 blocks
This commit is contained in:
@@ -94,7 +94,7 @@ int Element_PSTN::update(UPDATE_FUNC_ARGS)
|
|||||||
{
|
{
|
||||||
bool foundEnd = false;
|
bool foundEnd = false;
|
||||||
int pistonEndX, pistonEndY;
|
int pistonEndX, pistonEndY;
|
||||||
int pistonCount = 1;
|
int pistonCount = 0;
|
||||||
int newSpace = 0;
|
int newSpace = 0;
|
||||||
int armCount = 0;
|
int armCount = 0;
|
||||||
for (nxx = 0, nyy = 0, nxi = directionX, nyi = directionY; pistonCount < maxSize; nyy += nyi, nxx += nxi) {
|
for (nxx = 0, nyy = 0, nxi = directionX, nyi = directionY; pistonCount < maxSize; nyy += nyi, nxx += nxi) {
|
||||||
|
Reference in New Issue
Block a user