Use an overload that already passes the second argument as true
This commit is contained in:
committed by
abcdefg30
parent
c739447598
commit
e280e0f31c
@@ -136,7 +136,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (countdownLabel != null)
|
if (countdownLabel != null)
|
||||||
{
|
{
|
||||||
countdown = new CachedTransform<int, string>(t =>
|
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) : "";
|
countdownLabel.GetText = () => TimeLimit > 0 ? countdown.Update(ticksRemaining) : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user