diff --git a/OpenRA.Mods.Common/Effects/FloatingText.cs b/OpenRA.Mods.Common/Effects/FloatingText.cs index ed1c97c690..ccea3138d9 100644 --- a/OpenRA.Mods.Common/Effects/FloatingText.cs +++ b/OpenRA.Mods.Common/Effects/FloatingText.cs @@ -49,7 +49,8 @@ namespace OpenRA.Mods.Common.Effects if (wr.World.FogObscures(pos)) yield break; - yield return new TextRenderable(font, pos, 0, color, text); + // Arbitrary large value used for the z-offset to try and ensure the text displays above everything else. + yield return new TextRenderable(font, pos, 4096, color, text); } public static string FormatCashTick(int cashAmount)