Skip to content

Commit

Permalink
fix cropping bug for some HASL maps
Browse files Browse the repository at this point in the history
  • Loading branch information
derimmer committed Mar 28, 2023
1 parent 81dc24f commit b9f62b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/VASL/build/module/map/boardPicker/ASLBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public void crop(String row1, String row2, String coord1, String coord2, boolean
newCropBounds.y = coord1.length() == 0 ? 0 : (getGrid().getLocation("a" + coord1). y - (int) (dy / 2));
// hack to fix problem with RB cropping
if (dy == 64.47 || dy ==64.4528){
if (coord1.equals("")){coord1 = "0";}
newCropBounds.y += Math.ceil((double) Integer.valueOf(coord1)/10);
}
newCropBounds.height = coord2.length() == 0 ? -1 : (getGrid().getLocation("a" + coord2).y + (int) (dy / 2) - newCropBounds.y);
Expand Down

0 comments on commit b9f62b9

Please sign in to comment.