Actually render resources when shroud is disabled

This commit is contained in:
Paul Chote
2010-06-20 18:30:06 +12:00
committed by Chris Forbes
parent c1aa25e307
commit aff357db0b
2 changed files with 2 additions and 2 deletions

View File

@@ -204,6 +204,7 @@ namespace OpenRA.Graphics
{ {
var localPlayer = Game.world.LocalPlayer; var localPlayer = Game.world.LocalPlayer;
if (localPlayer == null) return null; if (localPlayer == null) return null;
if (localPlayer.Shroud.Disabled) return null;
return localPlayer.Shroud.Bounds; return localPlayer.Shroud.Bounds;
} }
} }

View File

@@ -56,8 +56,7 @@ namespace OpenRA.Traits
for (int y = miny; y < maxy; y++) for (int y = miny; y < maxy; y++)
{ {
if (world.LocalPlayer != null && if (world.LocalPlayer != null &&
!world.LocalPlayer.Shroud.IsExplored(new int2(x, y)) && !world.LocalPlayer.Shroud.IsExplored(new int2(x, y)))
!world.LocalPlayer.Shroud.Disabled)
continue; continue;
var c = content[x, y]; var c = content[x, y];