Validate player color when changing slots in the lobby
This commit is contained in:
@@ -135,6 +135,10 @@ namespace OpenRA.Mods.Common.Server
|
|||||||
|
|
||||||
client.Slot = s;
|
client.Slot = s;
|
||||||
S.SyncClientToPlayerReference(client, server.MapPlayers.Players[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();
|
server.SyncLobbyClients();
|
||||||
CheckAutoStart(server);
|
CheckAutoStart(server);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user