Permalink
Browse files

fix pstn oddity

  • Loading branch information...
krawthekrow authored and jacob1 committed Nov 18, 2016
1 parent 076ec71 commit 446d4412eae454126dd7b97a6684f68e81875cfb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/simulation/elements/PSTN.cpp
@@ -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)

0 comments on commit 446d441

Please sign in to comment.