diff --git a/core/src/mindustry/entities/comp/LegsComp.java b/core/src/mindustry/entities/comp/LegsComp.java index 296769cdc4..f27d24171b 100644 --- a/core/src/mindustry/entities/comp/LegsComp.java +++ b/core/src/mindustry/entities/comp/LegsComp.java @@ -70,7 +70,7 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc, Elevatio boolean side = i < legs.length/2; //back legs have reversed directions boolean backLeg = Math.abs((i + 0.5f) - legs.length/2f) <= 0.501f; - if(backLeg) side = !side; + if(backLeg && type.flipBackLegs) side = !side; l.moving = move; l.stage = stageF % 1f; diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index 52cfee82ba..dfc48a4363 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -47,6 +47,7 @@ public class UnitType extends UnlockableContent{ //TODO document public int legCount = 4, legGroupSize = 2; public float legLength = 10f, legSpeed = 0.1f, legTrns = 1f, legBaseOffset = 0f, legMoveSpace = 1f, legExtension = 0, legPairOffset = 0, legLengthScl = 1f, kinematicScl = 1f; + public boolean flipBackLegs = true; public int itemCapacity = 30; public int drillTier = -1;