removed TileReference.density

This commit is contained in:
Chris Forbes
2010-03-02 22:29:17 +13:00
parent 2c50d3baa7
commit 0c9e628bf9
9 changed files with 67 additions and 87 deletions

View File

@@ -84,9 +84,7 @@ namespace OpenRA
if (!world.WorldActor.traits.Get<BuildingInfluence>().CanMoveHere(newHere) &&
world.WorldActor.traits.Get<BuildingInfluence>().GetBuildingAt(newHere) != ignoreBuilding)
continue;
if (world.Map.IsOverlaySolid(newHere))
continue;
// Replicate real-ra behavior of not being able to enter a cell if there is a mixture of crushable and uncrushable units
if (checkForBlocked && (world.WorldActor.traits.Get<UnitInfluence>().GetUnitsAt(newHere).Any(a => !world.IsActorPathableToCrush(a, umt))))
continue;