LocalPlayer.Shroud is never the right shroud.

This commit is contained in:
Paul Chote
2013-04-10 21:42:30 +12:00
parent 248e815d99
commit 9b7bb53287
3 changed files with 6 additions and 5 deletions

View File

@@ -485,10 +485,10 @@ namespace OpenRA.Mods.RA.Move
IsQueued = forceQueued;
cursor = "move";
if (self.World.LocalPlayer.Shroud.IsExplored(location))
if (self.Owner.Shroud.IsExplored(location))
cursor = self.World.GetTerrainInfo(location).CustomCursor ?? cursor;
if (!self.World.Map.IsInMap(location) || (self.World.LocalPlayer.Shroud.IsExplored(location) &&
if (!self.World.Map.IsInMap(location) || (self.Owner.Shroud.IsExplored(location) &&
unitType.MovementCostForCell(self.World, location) == int.MaxValue))
cursor = "move-blocked";