Merge pull request #5706 from Mailaender/lint-players

Added a new OpenRA.Lint check for invalid player definitions
This commit is contained in:
Paul Chote
2014-06-25 11:30:34 +12:00
5 changed files with 47 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA
static CountryInfo ChooseCountry(World world, string name)
{
var selectableCountries = world.Map.Rules.Actors["world"].Traits
.WithInterface<CountryInfo>().Where( c => c.Selectable )
.WithInterface<CountryInfo>().Where(c => c.Selectable)
.ToArray();
return selectableCountries.FirstOrDefault(c => c.Race == name)