diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java index 801e45a..f5051bf 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java @@ -111,7 +111,7 @@ public class IntVector2 implements Serializable { } public IntVector2 scale(float x, float y) { - return new IntVector2((int)(this.x * x), (int)(this.y * y)); + return new IntVector2(Math.round(this.x * x), Math.round(this.y * y)); } public IntVector2 scale(float scalar) {