From 62c652a64569168591b7a80ad10b460edc1f000c Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 27 Nov 2010 11:05:09 +1300 Subject: [PATCH] Fix a fog information leak introduced by 8d8c6c67. --- OpenRA.Mods.RA/Move/Mobile.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Move/Mobile.cs b/OpenRA.Mods.RA/Move/Mobile.cs index 61ba72f68c..b3314864c8 100755 --- a/OpenRA.Mods.RA/Move/Mobile.cs +++ b/OpenRA.Mods.RA/Move/Mobile.cs @@ -373,10 +373,9 @@ namespace OpenRA.Mods.RA.Move public bool CanTargetLocation(Actor self, int2 location, List actorsAtLocation, bool forceAttack, bool forceMove, bool forceQueued, ref string cursor) { IsQueued = forceQueued; - cursor = "move"; if( !self.World.Map.IsInMap(location) || (self.World.LocalPlayer.Shroud.IsExplored( location ) && - !self.Trait().CanEnterCell( location ))) + Mobile.MovementCostForCell(self.Trait().Info, self.World, location) == int.MaxValue)) cursor = "move-blocked"; return true;