From d3e760659a6f88319569f2bf0d7b0304ccf8b5d3 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 14 Jul 2013 23:31:09 -0300 Subject: [PATCH] fix #3569 , and possible many other bugs... if the place is not close to the base, instead of returning the error, continue to see if there is another place to build --- OpenRA.Mods.RA/AI/HackyAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/AI/HackyAI.cs b/OpenRA.Mods.RA/AI/HackyAI.cs index 03fd29c437..ecc980e666 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -949,7 +949,7 @@ namespace OpenRA.Mods.RA.AI { if (distanceToBaseIsImportant) if (!bi.IsCloseEnoughToBase(world, p, actorType, t)) - return null; + continue; if (NoBuildingsUnder(Util.ExpandFootprint(FootprintUtils.Tiles(actorType, bi, t), false))) return t; }