Merge pull request #8659 from penev92/bleed_playerReference

Rename PlayerReference.Race to Faction
This commit is contained in:
Oliver Brakmann
2015-07-14 20:15:56 +02:00
166 changed files with 440 additions and 425 deletions

View File

@@ -40,8 +40,8 @@ namespace OpenRA.Mods.Common.Lint
var races = worldActor.Traits.WithInterface<CountryInfo>().Select(c => c.Race);
foreach (var player in players.Values)
if (!string.IsNullOrWhiteSpace(player.Race) && !races.Contains(player.Race))
emitError("Invalid race {0} chosen for player {1}.".F(player.Race, player.Name));
if (!string.IsNullOrWhiteSpace(player.Faction) && !races.Contains(player.Faction))
emitError("Invalid race {0} chosen for player {1}.".F(player.Faction, player.Name));
if (worldActor.Traits.Contains<MPStartLocationsInfo>())
{