Fix floating text ZOffset.
This commit is contained in:
@@ -49,7 +49,8 @@ namespace OpenRA.Mods.Common.Effects
|
|||||||
if (wr.World.FogObscures(pos))
|
if (wr.World.FogObscures(pos))
|
||||||
yield break;
|
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)
|
public static string FormatCashTick(int cashAmount)
|
||||||
|
|||||||
Reference in New Issue
Block a user