Skip to content

Commit

Permalink
Revert "Merge pull request #1 from haugan/patch-1"
Browse files Browse the repository at this point in the history
This reverts commit ab105b4, reversing
changes made to 9d84b5e.
  • Loading branch information
AlmasB committed Apr 5, 2017
1 parent ab105b4 commit 16182a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/almasb/checkers/CheckersApp.java
Expand Up @@ -74,7 +74,7 @@ private MoveResult tryMove(Piece piece, int newX, int newY) {
}

private int toBoard(double pixel) {
return (int) ((pixel + TILE_SIZE) / TILE_SIZE) - 1;
return (int)(pixel + TILE_SIZE / 2) / TILE_SIZE;
}

@Override
Expand Down

0 comments on commit 16182a9

Please sign in to comment.