From e7f127976ad91682de1d5bb579d9f9c464605e33 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Sun, 27 Dec 2015 18:39:06 +0000 Subject: [PATCH] Fix floating text ZOffset. --- OpenRA.Mods.Common/Effects/FloatingText.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)