check for building influence when growing resources

closes #5556
This commit is contained in:
Matthias Mailänder
2014-07-03 18:53:07 +02:00
parent b02ca7695f
commit 0feb5a7bdc
7 changed files with 22 additions and 5 deletions

View File

@@ -96,7 +96,8 @@ namespace OpenRA.Mods.RA
if (!info.TerrainTypes.Contains(type))
return false;
if (self.World.WorldActor.Trait<BuildingInfluence>().GetBuildingAt(cell) != null) return false;
if (self.World.WorldActor.Trait<BuildingInfluence>().GetBuildingAt(cell) != null)
return false;
if (!checkTransientActors)
return true;