fix units aiming sidewards missing their aim

This commit is contained in:
Karl-Robert Ernst
2020-12-12 22:11:19 +01:00
parent 8afb6006ce
commit 4aebba0a0c

View File

@@ -58,8 +58,8 @@ public class Predict{
ddy += h.deltaY(); ddy += h.deltaY();
} }
if(src instanceof Hitboxc h){ if(src instanceof Hitboxc h){
ddx -= h.deltaX()/(Time.delta); ddx -= h.deltaX();
ddy -= h.deltaY()/(Time.delta); ddy -= h.deltaY();
} }
return intercept(src.getX(), src.getY(), dst.getX(), dst.getY(), ddx, ddy, v); return intercept(src.getX(), src.getY(), dst.getX(), dst.getY(), ddx, ddy, v);
} }