LocalPlayer.Shroud is never the right shroud.
This commit is contained in:
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
if (!world.Map.IsInMap(cell))
|
||||
return;
|
||||
|
||||
if (world.LocalPlayer != null && !world.LocalPlayer.Shroud.IsExplored(cell))
|
||||
if (world.ShroudObscures(cell))
|
||||
{
|
||||
TooltipType = WorldTooltipType.Unexplored;
|
||||
return;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -31,9 +31,10 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
return;
|
||||
|
||||
var cell = Game.viewport.ViewToWorld(Viewport.LastMousePos);
|
||||
if (!world.Map.IsInMap(cell)) return;
|
||||
if (!world.Map.IsInMap(cell))
|
||||
return;
|
||||
|
||||
if (world.LocalPlayer != null && world.ShroudObscures(cell))
|
||||
if (world.ShroudObscures(cell))
|
||||
{
|
||||
var utext = "Unexplored Terrain";
|
||||
var usz = Game.Renderer.Fonts["Bold"].Measure(utext) + new int2(20, 24);
|
||||
|
||||
Reference in New Issue
Block a user