fix pstn oddity

This commit is contained in:
krawthekrow 2016-11-18 19:52:37 +08:00 committed by jacob1
parent 076ec711a9
commit 446d4412ea

View File

@ -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)