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
|
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;
|
tempParts[currentPos++] = r>>8;
|
||||||
else
|
else
|
||||||
return spaces;
|
return currentPos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (spaces)
|
if (spaces)
|
||||||
|
Reference in New Issue
Block a user