fix formatting in Game.cs

This commit is contained in:
Chris Forbes
2011-10-18 13:52:30 +13:00
parent 1d5201d797
commit 737756be51

View File

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