fix retardedly putting everyone in slot 0.

This commit is contained in:
Chris Forbes
2010-10-02 18:33:29 +13:00
parent 403b81bdc9
commit 911e7f62de

View File

@@ -164,7 +164,8 @@ namespace OpenRA.Server
static int ChooseFreeSlot()
{
return lobbyInfo.Slots.First(s => !s.Closed && s.Bot == null).Index;
return lobbyInfo.Slots.First(s => !s.Closed && s.Bot == null
&& !lobbyInfo.Clients.Any( c => c.Slot == s.Index )).Index;
}
static void AcceptConnection()