From 40e8c5136d201098b1a3b9d2dff70af7b7d4b855 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 29 May 2017 13:42:14 +0200 Subject: [PATCH] Fix the close enough check in Repair.cs --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index bd870b4c76..8530dc05a9 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -392,9 +392,9 @@ namespace OpenRA.Mods.Common.Traits if (Info.RearmBuildings.Contains(name)) yield return new Rearm(self); - // Add a CloseEnough range of 512 to ensure we're at the host actor + // The ResupplyAircraft activity guarantees that we're on the helipad if (Info.RepairBuildings.Contains(name)) - yield return new Repair(self, a, new WDist(512)); + yield return new Repair(self, a, WDist.Zero); } public void ModifyDeathActorInit(Actor self, TypeDictionary init)