Improve the stability of CountdownTimer

This commit is contained in:
Scott_NZ
2012-10-08 17:16:42 +13:00
parent 073a8ee079
commit c212095a40
2 changed files with 25 additions and 22 deletions

View File

@@ -401,7 +401,7 @@ namespace OpenRA.Mods.RA.Missions
void StartReinforcementsTimer()
{
Sound.Play("timergo1.aud");
reinforcementsTimer = new CountdownTimer(ReinforcementsTicks, ReinforcementsTimerExpired);
reinforcementsTimer = new CountdownTimer(ReinforcementsTicks, ReinforcementsTimerExpired, true);
reinforcementsTimerWidget = new CountdownTimerWidget(reinforcementsTimer, "Reinforcements arrive in", new float2(Game.viewport.Width * 0.1f, Game.viewport.Height * 0.8f));
Ui.Root.AddChild(reinforcementsTimerWidget);
}