From 7b1b17df4a640b8c4fe99135be0088fd12d8eaa3 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sun, 12 Apr 2015 15:27:25 +0200 Subject: [PATCH] Allow non-selectable factions for players if LockRace is set --- OpenRA.Game/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index d23e3d7930..5c018e665a 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -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; }