vacate cells earlier

This commit is contained in:
Chris Forbes
2010-06-18 22:36:24 +12:00
parent 0ef91ecc2d
commit 572cdc9dbf

View File

@@ -105,8 +105,10 @@ namespace OpenRA.Traits
public IEnumerable<int2> OccupiedCells()
{
return (fromCell == toCell)
? new[] { fromCell }
: new[] { fromCell, toCell };
? new[] { fromCell }
: CanEnterCell(toCell)
? new[] { toCell }
: new[] { fromCell, toCell };
}
public UnitMovementType GetMovementType()