Skip to content

Commit

Permalink
fix pstn oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
krawthekrow authored and jacob1 committed Apr 18, 2017
1 parent 076ec71 commit 446d441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/elements/PSTN.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 446d441

Please sign in to comment.