From be4466115d53ed377798528ec7c491b8084c5539 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sun, 29 Aug 2021 12:16:12 +0200 Subject: [PATCH] Do not update countdown label unless there is a timelimit --- OpenRA.Mods.Common/Traits/World/TimeLimitManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/World/TimeLimitManager.cs b/OpenRA.Mods.Common/Traits/World/TimeLimitManager.cs index 70699fa698..7ba5f485dc 100644 --- a/OpenRA.Mods.Common/Traits/World/TimeLimitManager.cs +++ b/OpenRA.Mods.Common/Traits/World/TimeLimitManager.cs @@ -128,7 +128,7 @@ namespace OpenRA.Mods.Common.Traits { countdown = new CachedTransform(t => info.CountdownText.F(WidgetUtils.FormatTime(t, true, w.Timestep))); - countdownLabel.GetText = () => countdown.Update(ticksRemaining); + countdownLabel.GetText = () => TimeLimit > 0 ? countdown.Update(ticksRemaining) : ""; } }