From c02206601c413a930f8f768f9557077629fa3ed6 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 1 Jan 2016 15:43:34 +0100 Subject: [PATCH] Use airMargin in CreateEffectWarhead's water check Closes #10350. --- OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs b/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs index 63279db33c..d42fefe38c 100644 --- a/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs +++ b/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs @@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Warheads if (dat.Length > airMargin.Length) return isDirectHit ? ImpactType.AirHit : ImpactType.Air; - if (dat.Length <= 0 && world.Map.GetTerrainInfo(cell).IsWater) + if (dat.Length <= airMargin.Length && world.Map.GetTerrainInfo(cell).IsWater) return isDirectHit ? ImpactType.WaterHit : ImpactType.Water; if (isDirectHit)