mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 15:02:03 -08:00
Cleanup
This commit is contained in:
parent
988fdb0c9b
commit
cf4f912cef
4 changed files with 5 additions and 7 deletions
|
|
@ -602,9 +602,7 @@ public class DesktopInput extends InputHandler{
|
|||
boolean omni = unit.type.omniMovement;
|
||||
boolean ground = unit.isGrounded();
|
||||
|
||||
float strafePenalty = ground ? 1f : Mathf.lerp(1f, unit.type.strafePenalty, Angles.angleDist(unit.vel().angle(), unit.rotation()) / 180f);
|
||||
|
||||
float speed = unit.realSpeed() * strafePenalty;
|
||||
float speed = unit.realSpeed();
|
||||
float xa = Core.input.axis(Binding.move_x);
|
||||
float ya = Core.input.axis(Binding.move_y);
|
||||
boolean boosted = (unit instanceof Mechc && unit.isFlying());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue