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

This commit is contained in:
Nico
2013-07-14 23:31:09 -03:00
parent 01f72f4f44
commit d3e760659a

View File

@@ -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;
}