mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-02 13:32:54 +02:00
fix pstn oddity
This commit is contained in:
parent
076ec711a9
commit
446d4412ea
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user