Fixed floorSpeedMultiplier being squared
This commit is contained in:
@@ -623,7 +623,7 @@ public class DesktopInput extends InputHandler{
|
||||
protected void updateMovement(Unit unit){
|
||||
boolean omni = unit.type.omniMovement;
|
||||
|
||||
float speed = unit.realSpeed();
|
||||
float speed = unit.speed();
|
||||
float xa = Core.input.axis(Binding.move_x);
|
||||
float ya = Core.input.axis(Binding.move_y);
|
||||
boolean boosted = (unit instanceof Mechc && unit.isFlying());
|
||||
|
||||
@@ -872,7 +872,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
targetPos.set(Core.camera.position);
|
||||
float attractDst = 15f;
|
||||
|
||||
float speed = unit.realSpeed();
|
||||
float speed = unit.speed();
|
||||
float range = unit.hasWeapons() ? unit.range() : 0f;
|
||||
float bulletSpeed = unit.hasWeapons() ? type.weapons.first().bullet.speed : 0f;
|
||||
float mouseAngle = unit.angleTo(unit.aimX(), unit.aimY());
|
||||
|
||||
Reference in New Issue
Block a user