Unknown race -> Random; make it actually work, too.

This commit is contained in:
Chris Forbes
2010-03-18 13:18:41 +13:00
parent c17459310a
commit 8a05af72b3
4 changed files with 14 additions and 8 deletions

View File

@@ -87,10 +87,10 @@ namespace OpenRA
Palette = "neutral";
Color = Color.Gray; // HACK HACK
}
Country = world.GetCountries()
.FirstOrDefault( c => client != null && client.Country == c.Name )
?? world.GetCountries().First();
.FirstOrDefault(c => client != null && client.Country == c.Name)
?? world.GetCountries().Random(world.SharedRandom);
}
void UpdatePower()