Allow picking of a random subfaction

This commit is contained in:
abcdefg30
2015-03-06 16:02:40 +01:00
parent 687403ab89
commit 63fe578ba8
19 changed files with 65 additions and 19 deletions

View File

@@ -270,7 +270,7 @@ namespace OpenRA.Mods.Common.Server
Name = botType,
Bot = botType,
Slot = parts[0],
Country = "random",
Race = "Random",
SpawnPoint = 0,
Team = 0,
State = Session.ClientState.NotReady,
@@ -738,7 +738,7 @@ namespace OpenRA.Mods.Common.Server
if (server.LobbyInfo.Slots[targetClient.Slot].LockRace)
return true;
targetClient.Country = parts[1];
targetClient.Race = parts[1];
server.SyncLobbyClients();
return true;
}