Fix floating text ZOffset.

This commit is contained in:
RoosterDragon
2015-12-27 18:39:06 +00:00
parent eafae0dee5
commit e7f127976a

View File

@@ -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)