Skirmish mode starts with a bot selected.

This commit is contained in:
Paul Chote
2011-06-18 00:39:50 +12:00
parent c6182f6039
commit bcbd18bb52
5 changed files with 30 additions and 16 deletions

View File

@@ -31,6 +31,12 @@ namespace OpenRA.Network
return Clients.SingleOrDefault(c => c.Slot == slot.Index);
}
public int FirstEmptySlot()
{
return Slots.First(s => !s.Closed && ClientInSlot(s) == null
&& s.Bot == null).Index;
}
public enum ClientState
{
NotReady,