Use an overload that already passes the second argument as true

This commit is contained in:
Ivaylo Draganov
2022-12-03 20:01:46 +02:00
committed by abcdefg30
parent c739447598
commit e280e0f31c

View File

@@ -136,7 +136,7 @@ namespace OpenRA.Mods.Common.Traits
if (countdownLabel != null)
{
countdown = new CachedTransform<int, string>(t =>
info.CountdownText.F(WidgetUtils.FormatTime(t, true, w.Timestep)));
info.CountdownText.F(WidgetUtils.FormatTime(t, w.Timestep)));
countdownLabel.GetText = () => TimeLimit > 0 ? countdown.Update(ticksRemaining) : "";
}
}