Skip to content

Commit da112c5

Browse files
committed
*shrugs*
1 parent 93abb30 commit da112c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/progressed/entities/bullet/pseudo3d/ArcMissileBulletType.java

+7
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ public void arcBulletDataInit(Bullet b){
5757
a.updateAimPos(b);
5858
}
5959

60+
@Override
61+
public void updateHoming(Bullet b){
62+
//Since the pitch calculation can only find one solution, only home when that one solution is the optimal one.
63+
if(((ArcBulletData)b.data).zVel > 0) return;
64+
super.updateHoming(b);
65+
}
66+
6067
public static class ArcMissileData extends ArcBulletData{
6168
public float accel;
6269

0 commit comments

Comments
 (0)