diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 95f5ced15c..089f5d4e39 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -4063,6 +4063,8 @@ public class UnitTypes{ isEnemy = false; envDisabled = 0; + range = 60f; + faceTarget = true; targetPriority = -2; lowAltitude = false; mineWalls = true; @@ -4127,8 +4129,10 @@ public class UnitTypes{ isEnemy = false; envDisabled = 0; + range = 60f; targetPriority = -2; lowAltitude = false; + faceTarget = true; mineWalls = true; mineFloor = false; mineHardnessScaling = false; @@ -4204,6 +4208,8 @@ public class UnitTypes{ isEnemy = false; envDisabled = 0; + range = 65f; + faceTarget = true; targetPriority = -2; lowAltitude = false; mineWalls = true; diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index 5b410a11b7..54d2b3df2f 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -766,7 +766,7 @@ public class MobileInput extends InputHandler implements GestureListener{ renderer.scaleCamera(Core.input.axisTap(Binding.zoom)); } - if(!Core.settings.getBool("keyboard") && !locked){ + if(!Core.settings.getBool("keyboard") && !locked && !scene.hasKeyboard()){ //move camera around float camSpeed = 6f; Core.camera.position.add(Tmp.v1.setZero().add(Core.input.axis(Binding.move_x), Core.input.axis(Binding.move_y)).nor().scl(Time.delta * camSpeed)); @@ -967,7 +967,6 @@ public class MobileInput extends InputHandler implements GestureListener{ boolean allowHealing = type.canHeal; boolean validHealTarget = allowHealing && target instanceof Building b && b.isValid() && target.team() == unit.team && b.damaged() && target.within(unit, type.range); boolean boosted = (unit instanceof Mechc && unit.isFlying()); - //reset target if: // - in the editor, or... // - it's both an invalid standard target and an invalid heal target