fix formatting in Game.cs
This commit is contained in:
@@ -309,19 +309,20 @@ namespace OpenRA
|
|||||||
StartGame(ChooseShellmap());
|
StartGame(ChooseShellmap());
|
||||||
}
|
}
|
||||||
|
|
||||||
static string ChooseShellmap()
|
static string ChooseShellmap()
|
||||||
{
|
{
|
||||||
var shellmaps = modData.AvailableMaps
|
var shellmaps = modData.AvailableMaps
|
||||||
.Where(m => m.Value.UseAsShellmap);
|
.Where(m => m.Value.UseAsShellmap);
|
||||||
|
|
||||||
if (shellmaps.Count() == 0)
|
if (shellmaps.Count() == 0)
|
||||||
throw new InvalidDataException("No valid shellmaps available");
|
throw new InvalidDataException("No valid shellmaps available");
|
||||||
|
|
||||||
return shellmaps.Random(CosmeticRandom).Key;
|
return shellmaps.Random(CosmeticRandom).Key;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool quit;
|
static bool quit;
|
||||||
public static event Action OnQuit = () => {};
|
public static event Action OnQuit = () => {};
|
||||||
|
|
||||||
internal static void Run()
|
internal static void Run()
|
||||||
{
|
{
|
||||||
while (!quit)
|
while (!quit)
|
||||||
|
|||||||
Reference in New Issue
Block a user