simplification

This commit is contained in:
Chris Forbes
2010-12-27 18:42:28 +13:00
parent 9d768fa1c1
commit 24a5b3ba03

View File

@@ -387,7 +387,7 @@ namespace OpenRA.Mods.RA.Move
IsQueued = forceQueued;
cursor = "move";
if (!self.World.Map.IsInMap(location) || (self.World.LocalPlayer.Shroud.IsExplored(location) &&
self.Trait<Mobile>().Info.MovementCostForCell(self.World, location) == int.MaxValue))
unitType.MovementCostForCell(self.World, location) == int.MaxValue))
cursor = "move-blocked";
return true;