From 3fe4d3267443d4f03f40c26e8e4b4fd884ff21d0 Mon Sep 17 00:00:00 2001 From: Caleb Anderson Date: Sat, 9 Apr 2011 14:02:58 -0500 Subject: [PATCH] helis don't fail to attack on diagonal approach --- OpenRA.Mods.RA/Air/HeliAttack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Air/HeliAttack.cs b/OpenRA.Mods.RA/Air/HeliAttack.cs index 1de7b1e882..46a65bb668 100755 --- a/OpenRA.Mods.RA/Air/HeliAttack.cs +++ b/OpenRA.Mods.RA/Air/HeliAttack.cs @@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA.Air } var attack = self.Trait(); - var range = attack.GetMaximumRange() - 1; + var range = attack.GetMaximumRange() * 0.625f; var dist = target.CenterLocation - self.CenterLocation; var desiredFacing = Util.GetFacing(dist, aircraft.Facing);