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

@@ -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);