Fix ralint
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user