Remove custom Stopwatch wrapper
Remove the redirection (that doesn't offer any new functionality) and replace it with the familiar System.Diagnostics.Stopwatch.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.FileSystem;
|
||||
@@ -23,7 +24,7 @@ namespace OpenRA.Mods.RA
|
||||
public class DefaultLoadScreen : ILoadScreen
|
||||
{
|
||||
Dictionary<string, string> info;
|
||||
Stopwatch lastUpdate = new Stopwatch();
|
||||
Stopwatch lastUpdate = Stopwatch.StartNew();
|
||||
Renderer r;
|
||||
|
||||
Rectangle stripeRect;
|
||||
@@ -61,7 +62,7 @@ namespace OpenRA.Mods.RA
|
||||
if (r.Fonts == null)
|
||||
return;
|
||||
|
||||
lastUpdate.Reset();
|
||||
lastUpdate.Restart();
|
||||
var text = messages.Random(Game.CosmeticRandom);
|
||||
var textSize = r.Fonts["Bold"].Measure(text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user