fix bug where cursor was wrong for moving onto bib

This commit is contained in:
Chris Forbes
2009-12-31 13:30:41 +13:00
parent 21fc37e27e
commit 3cd89e1f69

View File

@@ -85,7 +85,7 @@ namespace OpenRa.Game.Traits
public bool CanEnterCell(int2 a) public bool CanEnterCell(int2 a)
{ {
if (Game.BuildingInfluence.GetBuildingAt(a) != null) return false; if (!Game.BuildingInfluence.CanMoveHere(a)) return false;
var crushable = true; var crushable = true;
foreach (Actor actor in Game.UnitInfluence.GetUnitsAt(a)) foreach (Actor actor in Game.UnitInfluence.GetUnitsAt(a))