Show move-blocked cursor if we can know the unit can't move there.

This commit is contained in:
Paul Chote
2010-11-26 13:18:04 +13:00
parent 06ed722b7a
commit 5470264f00

View File

@@ -389,8 +389,10 @@ namespace OpenRA.Mods.RA.Move
IsQueued = forceQueued;
cursor = "move";
if( self.World.LocalPlayer.Shroud.IsVisible( location ) && !self.Trait<Mobile>().CanEnterCell( location ) )
if( !self.World.Map.IsInMap(location) || (self.World.LocalPlayer.Shroud.IsExplored( location ) &&
!self.Trait<Mobile>().CanEnterCell( location )))
cursor = "move-blocked";
return true;
}
}