Allow players locked to unplayable factions in the lobby

This commit is contained in:
Oliver Brakmann
2015-04-17 20:38:29 +02:00
parent f77d6f6044
commit 28310ce2fc
2 changed files with 5 additions and 3 deletions

View File

@@ -121,7 +121,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
return item;
};
var options = countries.GroupBy(c => c.Value.Side).ToDictionary(g => g.Key ?? "", g => g.Select(c => c.Key));
var options = countries.Where(c => c.Value.Selectable).GroupBy(c => c.Value.Side)
.ToDictionary(g => g.Key ?? "", g => g.Select(c => c.Key));
dropdown.ShowDropDown("RACE_DROPDOWN_TEMPLATE", 150, options, setupItem);
}