From 24a5b3ba032f5718240b961c5db8a7e8f39b7f47 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 27 Dec 2010 18:42:28 +1300 Subject: [PATCH] simplification --- OpenRA.Mods.RA/Move/Mobile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Move/Mobile.cs b/OpenRA.Mods.RA/Move/Mobile.cs index 87e4c1093e..f5d3283762 100755 --- a/OpenRA.Mods.RA/Move/Mobile.cs +++ b/OpenRA.Mods.RA/Move/Mobile.cs @@ -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().Info.MovementCostForCell(self.World, location) == int.MaxValue)) + unitType.MovementCostForCell(self.World, location) == int.MaxValue)) cursor = "move-blocked"; return true;