Merge pull request #9922 from penev92/validateColor

Validate player color when changing slots in the lobby
This commit is contained in:
Paul Chote
2015-11-11 22:56:30 +00:00

View File

@@ -135,6 +135,10 @@ namespace OpenRA.Mods.Common.Server
client.Slot = s;
S.SyncClientToPlayerReference(client, server.MapPlayers.Players[s]);
var validatedColor = ColorValidator.ValidatePlayerColorAndGetAlternative(server, client.Color, client.Index, conn);
client.PreferredColor = client.Color = validatedColor;
server.SyncLobbyClients();
CheckAutoStart(server);