This commit is contained in:
Chris Forbes
2009-11-08 14:00:02 +13:00
parent d954b22f65
commit 8ae3c04212
2 changed files with 5 additions and 4 deletions

View File

@@ -299,7 +299,7 @@ namespace OpenRa.Game
{
var bi = (UnitInfo.BuildingInfo)Rules.UnitInfo[name];
return !Footprint.Tiles(bi, xy, adjust).Any(
t => !Game.IsCellBuildable(t,
t => Game.map.ContainsResource(t) || !Game.IsCellBuildable(t,
bi.WaterBound ? UnitMovementType.Float : UnitMovementType.Wheel,
toIgnore));
}