Polish: Show the "move-blocked" cursor for locations outside the map. Clamp move orders to the map bounds for these orders.

This commit is contained in:
Paul Chote
2010-11-26 13:42:33 +13:00
parent 5470264f00
commit 5f43923b80
7 changed files with 24 additions and 21 deletions

View File

@@ -76,7 +76,7 @@ namespace OpenRA.Mods.RA
public bool CanTargetLocation(Actor self, int2 location, List<Actor> actorsAtLocation, bool forceAttack, bool forceMove, bool forceQueued, ref string cursor)
{
return true;
return self.World.Map.IsInMap(location);
}
public bool IsQueued { get { return false; } } // unused