diff --git a/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs b/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs index 98650a6b66..ab60e4aa77 100644 --- a/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs +++ b/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs @@ -85,7 +85,7 @@ namespace OpenRA.Mods.Common.Warheads continue; // If the impact position is within any actor's HitShape, we have a direct hit - if ((unit.CenterPosition - pos).LengthSquared <= healthInfo.Shape.DistanceFromEdge(pos, unit).LengthSquared) + if (healthInfo.Shape.DistanceFromEdge(pos, unit).Length <= 0) return true; }