From 217221d1740c5be8bd0be5636a061cb3e4d31195 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 17 May 2019 17:57:57 +0000 Subject: [PATCH] Fix multiple clients being assigned as admin. --- OpenRA.Game/Server/Server.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 8a3324b1be..22c3ac6a0f 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -337,7 +337,6 @@ namespace OpenRA.Server SpawnPoint = 0, Team = 0, State = Session.ClientState.Invalid, - IsAdmin = !LobbyInfo.Clients.Any(c1 => c1.IsAdmin) }; if (ModData.Manifest.Id != handshake.Mod) @@ -373,6 +372,7 @@ namespace OpenRA.Server Action completeConnection = () => { client.Slot = LobbyInfo.FirstEmptySlot(); + client.IsAdmin = !LobbyInfo.Clients.Any(c1 => c1.IsAdmin); if (client.IsObserver && !LobbyInfo.GlobalSettings.AllowSpectators) {