Merge pull request #5197 from pavlos256/minor-cleanup

Minor cleanup
This commit is contained in:
Matthias Mailänder
2014-04-27 18:33:13 +02:00
13 changed files with 19 additions and 157 deletions

View File

@@ -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);

View File

@@ -9,6 +9,7 @@
#endregion
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using OpenRA.Graphics;
@@ -187,7 +188,7 @@ namespace OpenRA.Mods.RA
void BuildDomains(World world)
{
var timer = new Stopwatch();
var timer = Stopwatch.StartNew();
var map = world.Map;
var domain = 1;