From 3039b1d710db06c17093e8cbe99651efc22c91e3 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Tue, 8 Jan 2019 20:05:25 +0100 Subject: [PATCH] Reset the client state when being moved to spectator --- OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs index 94e2a2df29..3e74a87cf9 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs @@ -654,6 +654,7 @@ namespace OpenRA.Mods.Common.Server targetClient.SpawnPoint = 0; targetClient.Team = 0; targetClient.Color = HSLColor.FromRGB(255, 255, 255); + targetClient.State = Session.ClientState.NotReady; server.SendMessage("{0} moved {1} to spectators.".F(client.Name, targetClient.Name)); Log.Write("server", "{0} moved {1} to spectators.".F(client.Name, targetClient.Name)); server.SyncLobbyClients();