From fbebb6d85151309ae0666aef77f93227597b360c Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 1 Oct 2016 22:36:25 +0200 Subject: [PATCH] Fix floating text showing up beneath shroud --- OpenRA.Mods.Common/Effects/FloatingText.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Effects/FloatingText.cs b/OpenRA.Mods.Common/Effects/FloatingText.cs index 9a3d7aa356..b13eeef368 100644 --- a/OpenRA.Mods.Common/Effects/FloatingText.cs +++ b/OpenRA.Mods.Common/Effects/FloatingText.cs @@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Effects public IEnumerable 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.