Tick the game timer status independently of the game rate.

This commit is contained in:
Paul Chote
2014-03-13 10:13:33 +13:00
committed by Matthias Mailänder
parent 45ad52f737
commit d5edbc2bc7

View File

@@ -26,9 +26,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var status = widget.GetOrNull<LabelWidget>("GAME_TIMER_STATUS");
if (status != null)
{
var startTick = Ui.LastTickTime;
// Blink the status line
status.IsVisible = () => (world.Paused || world.Timestep != Game.Timestep)
&& orderManager.LocalFrameNumber / 25 % 2 == 0;
&& (Ui.LastTickTime - startTick) / 1000 % 2 == 0;
status.GetText = () =>
{