Merge pull request #4116 from pchote/lobby-fix

Fix the auto-team options.
This commit is contained in:
Matthias Mailänder
2013-11-10 01:39:59 -08:00

View File

@@ -227,7 +227,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var teamCount = (orderManager.LobbyInfo.Slots.Count(s => !s.Value.LockTeam && orderManager.LobbyInfo.ClientInSlot(s.Key) != null) + 1) / 2;
if (teamCount >= 1)
{
var teamOptions = Enumerable.Range(2, teamCount + 1).Reverse().Select(d => new DropDownOption
var teamOptions = Enumerable.Range(2, teamCount - 1).Reverse().Select(d => new DropDownOption
{
Title = "{0} Teams".F(d),
IsSelected = () => false,