diff --git a/OpenRA.Mods.Common/HitShapes/Rectangle.cs b/OpenRA.Mods.Common/HitShapes/Rectangle.cs index dc8a35f4a6..f6dfd4b40e 100644 --- a/OpenRA.Mods.Common/HitShapes/Rectangle.cs +++ b/OpenRA.Mods.Common/HitShapes/Rectangle.cs @@ -67,7 +67,10 @@ namespace OpenRA.Mods.Common.HitShapes quadrantSize = (BottomRight - TopLeft) / 2; center = TopLeft + quadrantSize; - OuterRadius = new WDist(Math.Max(TopLeft.Length, BottomRight.Length)); + var topRight = new int2(BottomRight.X, TopLeft.Y); + var bottomLeft = new int2(TopLeft.X, BottomRight.Y); + var corners = new[] { TopLeft, BottomRight, topRight, bottomLeft }; + OuterRadius = new WDist(corners.Select(x => x.Length).Max()); combatOverlayVertsTop = new WVec[] {