From 5c4ac6b702e49add35ec4bf511485d36b734ccf5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 15 Aug 2018 18:37:20 -0400 Subject: [PATCH] Fixed major issue with Vector2.ZERO mutation --- core/src/io/anuke/mindustry/entities/Predict.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/io/anuke/mindustry/entities/Predict.java b/core/src/io/anuke/mindustry/entities/Predict.java index ec3385a852..06f86b540c 100644 --- a/core/src/io/anuke/mindustry/entities/Predict.java +++ b/core/src/io/anuke/mindustry/entities/Predict.java @@ -53,9 +53,6 @@ public class Predict{ * See {@link #intercept(float, float, float, float, float, float, float)}. */ public static Vector2 intercept(TargetTrait src, TargetTrait dst, float v){ - if(vec.set(dst.getVelocity().sub(src.getVelocity())).isZero()){ - return vresult.set(dst.getX(), dst.getY()); - } return intercept(src.getX(), src.getY(), dst.getX(), dst.getY(), dst.getVelocity().x - src.getVelocity().x, dst.getVelocity().x - src.getVelocity().y, v); }