Allow BuildingInfluence to track overlapping buildings in the same cell.
This commit is contained in:
@@ -97,7 +97,7 @@ namespace OpenRA.Mods.D2k.Traits.Buildings
|
||||
continue;
|
||||
|
||||
// Don't place under other buildings (or their bib)
|
||||
if (bi.GetBuildingAt(c) != self)
|
||||
if (bi.GetBuildingsAt(c).Any(a => a != self))
|
||||
continue;
|
||||
|
||||
var index = Game.CosmeticRandom.Next(template.TilesCount);
|
||||
@@ -115,7 +115,7 @@ namespace OpenRA.Mods.D2k.Traits.Buildings
|
||||
continue;
|
||||
|
||||
// Don't place under other buildings (or their bib)
|
||||
if (bi.GetBuildingAt(c) != self)
|
||||
if (bi.GetBuildingsAt(c).Any(a => a != self))
|
||||
continue;
|
||||
|
||||
layer.AddTile(c, new TerrainTile(template.Id, (byte)i));
|
||||
|
||||
Reference in New Issue
Block a user