Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Moving the latest tile #183
The problem comes from the following line (589) in binplane :
public static final class CandidateDepthDataIterator extends ConversionIterator<Candidate,T>
When you move the mouse cursor again on the latest tile, the c.depth worths -2147483648. But i've no idea why.
I've found the real cause : when i implemented a border for selected instances/tiles, i've modified the way tiles are displayed : if a tile/instance is selected, the depth is set to a very low value, so it will ensure that the outside border is always visible. If we don't do that, if the tiles is rounded by other tiles, the border will not be visible.The consequence, is that it's not possible anymore to select and move a selected tile. For instances, it is not a problem, as for selecting one we don't take into account the depth.
The line which causes really the error is in RoomVisual :
A possible workaround would be to decrease the size of tiles borders, so to make sure they are not displayed outside.