Allow non-selectable factions for players if LockRace is set

This commit is contained in:
Oliver Brakmann
2015-04-12 15:27:25 +02:00
parent 83e9c51940
commit 7b1b17df4a

View File

@@ -86,7 +86,7 @@ namespace OpenRA
Color = client.Color;
PlayerName = client.Name;
botType = client.Bot;
Country = ChooseCountry(world, client.Race);
Country = ChooseCountry(world, client.Race, !pr.LockRace);
pr.Race = selectedCountryName;
pr.RaceFlagName = client.Race;
}