made Expand a bit more sensible

This commit is contained in:
Chris Forbes
2010-03-28 16:49:28 +13:00
parent 6b7d824b9b
commit b677f3cb56
2 changed files with 9 additions and 2 deletions

View File

@@ -70,4 +70,10 @@ namespace OpenRA.Traits
{
return map.IsInMap(cell) && !blocked[cell.X, cell.Y];
}
public bool CanMoveHere(int2 cell, Actor toIgnore)
{
return map.IsInMap(cell) &&
(!blocked[cell.X, cell.Y] || influence[cell.X, cell.Y] == toIgnore);
}
}}