Merge pull request #12941 from forcecore/ai_ref_placement

HackyAI now builds refinery near ore.
This commit is contained in:
Paul Chote
2017-03-11 12:40:48 +00:00
committed by GitHub

View File

@@ -562,7 +562,7 @@ namespace OpenRA.Mods.Common.AI
foreach (var r in nearbyResources)
{
var found = findPos(r, baseCenter, Info.MinBaseRadius, Info.MaxBaseRadius);
var found = findPos(baseCenter, r, Info.MinBaseRadius, Info.MaxBaseRadius);
if (found != null)
return found;
}