From 154ee9c0f229501d39fbef6ccb6a20e6b76d4a3f Mon Sep 17 00:00:00 2001 From: punchready Date: Mon, 19 Jul 2021 17:47:59 +0200 Subject: [PATCH] fix: *facepalm* --- .../teamname/marvelous/gamelibrary/gamelogic/GameLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java index f885d9c..6db7c88 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java @@ -1310,7 +1310,7 @@ public class GameLogic { int y1 = Math.min(a.getY(), b.getY()); int y2 = Math.max(a.getY(), b.getY()); - Line2D line = new Line2D.Float(x1 + 0.5f, y1 + 0.5f, x2 + 0.5f, y2 + 0.5f); + Line2D line = new Line2D.Float(a.getX() + 0.5f, a.getY() + 0.5f, b.getX() + 0.5f, b.getY() + 0.5f); for(int i = x1; i <= x2; i++) { for(int j = y1; j <= y2; j++) { HashSet intersections = new HashSet<>();