Sync up the countdown timer and the objectives button flash with the game speed

This commit is contained in:
Scott_NZ
2012-10-05 22:03:35 +13:00
parent a4b01cf114
commit 073a8ee079
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ namespace OpenRA.Mods.RA.Missions
}
var font = Game.Renderer.Fonts["Bold"];
var text = "{0}: {1}".F(Header, WidgetUtils.FormatTime(Timer.TicksLeft));
font.DrawTextWithContrast(text, Position, Timer.TicksLeft <= 25 * 10 && Game.LocalTick % 60 <= 30 ? Color.Red : Color.White, Color.Black, 1);
font.DrawTextWithContrast(text, Position, Timer.TicksLeft <= 25 * 10 && Game.LocalTick % 50 < 25 ? Color.Red : Color.White, Color.Black, 1);
}
}
}