Fix floating text showing up beneath shroud

This commit is contained in:
abcdefg30
2016-10-01 22:36:25 +02:00
parent 0d54f2994f
commit fbebb6d851

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Effects
public IEnumerable<IRenderable> RenderAboveShroud(WorldRenderer wr)
{
if (wr.World.FogObscures(pos))
if (wr.World.FogObscures(pos) || wr.World.ShroudObscures(pos))
yield break;
// Arbitrary large value used for the z-offset to try and ensure the text displays above everything else.