mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-12 11:24:04 +02:00
fix pstn oddity
This commit is contained in:
@@ -198,10 +198,10 @@ int Element_PSTN::CanMoveStack(Simulation * sim, int stackX, int stackY, int dir
|
||||
}
|
||||
else
|
||||
{
|
||||
if (spaces < maxSize && currentPos < maxSize && (!retract || ((r&0xFF) == PT_FRME && posX == stackX && posY == stackY)))
|
||||
if (currentPos - spaces < maxSize && (!retract || ((r&0xFF) == PT_FRME && posX == stackX && posY == stackY)))
|
||||
tempParts[currentPos++] = r>>8;
|
||||
else
|
||||
return spaces;
|
||||
return currentPos;
|
||||
}
|
||||
}
|
||||
if (spaces)
|
||||
|
Reference in New Issue
Block a user