Number AI players
This commit is contained in:
@@ -105,7 +105,14 @@ namespace OpenRA
|
|||||||
{
|
{
|
||||||
ClientIndex = client.Index;
|
ClientIndex = client.Index;
|
||||||
Color = client.Color;
|
Color = client.Color;
|
||||||
|
if (client.Bot != null)
|
||||||
|
{
|
||||||
|
var botsOfSameType = world.LobbyInfo.Clients.Where(c => c.Bot == client.Bot).ToArray();
|
||||||
|
PlayerName = botsOfSameType.Length == 1 ? client.Bot : "{0} {1}".F(client.Bot, botsOfSameType.IndexOf(client) + 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
PlayerName = client.Name;
|
PlayerName = client.Name;
|
||||||
|
|
||||||
botType = client.Bot;
|
botType = client.Bot;
|
||||||
Faction = ChooseFaction(world, client.Faction, !pr.LockFaction);
|
Faction = ChooseFaction(world, client.Faction, !pr.LockFaction);
|
||||||
DisplayFaction = ChooseDisplayFaction(world, client.Faction);
|
DisplayFaction = ChooseDisplayFaction(world, client.Faction);
|
||||||
|
|||||||
Reference in New Issue
Block a user