Fix ralint

This commit is contained in:
Paul Chote
2010-08-25 20:04:33 +12:00
parent f635835b1c
commit 0cc440aa1f
2 changed files with 7 additions and 6 deletions

View File

@@ -14,6 +14,9 @@ namespace OpenRA.Mods.RA
{ {
public void Display() public void Display()
{ {
if (Game.Renderer == null)
return;
Game.Renderer.BeginFrame(float2.Zero); Game.Renderer.BeginFrame(float2.Zero);
Game.Renderer.EndFrame(); Game.Renderer.EndFrame();
} }

View File

@@ -19,11 +19,6 @@ namespace OpenRA.Mods.RA
{ {
public class RALoadScreen : ILoadScreen public class RALoadScreen : ILoadScreen
{ {
public RALoadScreen ()
{
}
static string[] loadComments = new[] { "Filling Crates...", "Charging Capacitors...", "Reticulating Splines...", static string[] loadComments = new[] { "Filling Crates...", "Charging Capacitors...", "Reticulating Splines...",
"Planting Trees...", "Building Bridges...", "Aging Empires...", "Planting Trees...", "Building Bridges...", "Aging Empires...",
"Compiling EVA...", "Constructing Pylons...", "Activating Skynet...", "Compiling EVA...", "Constructing Pylons...", "Activating Skynet...",
@@ -33,6 +28,9 @@ namespace OpenRA.Mods.RA
static Stopwatch lastLoadScreen = new Stopwatch(); static Stopwatch lastLoadScreen = new Stopwatch();
public void Display() public void Display()
{ {
if (Game.Renderer == null)
return;
// Update text at most every 0.5 seconds // Update text at most every 0.5 seconds
if (lastLoadScreen.ElapsedTime() < 0.5) if (lastLoadScreen.ElapsedTime() < 0.5)
return; return;