Allow BuildingInfluence to track overlapping buildings in the same cell.

This commit is contained in:
Paul Chote
2021-03-28 13:05:11 +01:00
committed by reaperrr
parent bc286b78bf
commit a1df91b665
3 changed files with 47 additions and 15 deletions

View File

@@ -235,7 +235,7 @@ namespace OpenRA.Mods.Common.Traits
// Building bibs and pathable footprint cells are not included in the ActorMap
// TODO: Allow ActorMap to track these and finally remove the BuildingInfluence layer completely
if (AnyGivesBuildableArea(new[] { bi.GetBuildingAt(c) }, p, allyBuildEnabled, requiresBuildableArea))
if (AnyGivesBuildableArea(bi.GetBuildingsAt(c), p, allyBuildEnabled, requiresBuildableArea))
nearnessCandidates.Add(c);
}
}