Actually render resources when shroud is disabled
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user