fix units aiming sidewards missing their aim
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user