Validate player color when changing slots in the lobby

This commit is contained in:
Pavel Penev
2015-11-07 20:27:10 +02:00
parent 239f842107
commit 98134fab5d

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);