From aff357db0be13e7aaa80c1cd54d62bf32bcd74b0 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 20 Jun 2010 18:30:06 +1200 Subject: [PATCH] Actually render resources when shroud is disabled --- OpenRA.Game/Graphics/Viewport.cs | 1 + OpenRA.Game/Traits/World/ResourceLayer.cs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Graphics/Viewport.cs b/OpenRA.Game/Graphics/Viewport.cs index d47d3fd163..3e9bc10637 100644 --- a/OpenRA.Game/Graphics/Viewport.cs +++ b/OpenRA.Game/Graphics/Viewport.cs @@ -204,6 +204,7 @@ namespace OpenRA.Graphics { var localPlayer = Game.world.LocalPlayer; if (localPlayer == null) return null; + if (localPlayer.Shroud.Disabled) return null; return localPlayer.Shroud.Bounds; } } diff --git a/OpenRA.Game/Traits/World/ResourceLayer.cs b/OpenRA.Game/Traits/World/ResourceLayer.cs index e6e92bcc28..642204528d 100644 --- a/OpenRA.Game/Traits/World/ResourceLayer.cs +++ b/OpenRA.Game/Traits/World/ResourceLayer.cs @@ -56,8 +56,7 @@ namespace OpenRA.Traits for (int y = miny; y < maxy; y++) { if (world.LocalPlayer != null && - !world.LocalPlayer.Shroud.IsExplored(new int2(x, y)) && - !world.LocalPlayer.Shroud.Disabled) + !world.LocalPlayer.Shroud.IsExplored(new int2(x, y))) continue; var c = content[x, y];