fix: polyline cannot be drawn if actualSize < 2
This commit is contained in:
parent
45b1bdd3a8
commit
0ece22dc85
|
@ -72,9 +72,11 @@ public class Bow extends Actor {
|
|||
if (aimAssist) {
|
||||
Trajectory traj =
|
||||
Arrow.computeTrajectory(angle, power, GameScreen.playerCurrent, 50, 0.01f);
|
||||
if (traj.actualSize > 2) {
|
||||
shapes.polyline(traj.path, 0, traj.actualSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue