From 4251ed69bb01de209c293474c1e412b12afbf3d8 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 3 Jan 2021 23:02:24 +0000 Subject: [PATCH] Keep Discord join button active for spectators. --- OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs index 05ca277336..7b16da3bbb 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs @@ -773,6 +773,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic } } + // Add extra slots to keep the join button active for spectators + if (numberOfPlayers == slots && orderManager.LobbyInfo.GlobalSettings.AllowSpectators) + slots = numberOfPlayers + 1; + var details = map.Title + " - " + orderManager.LobbyInfo.GlobalSettings.ServerName; if (updateDiscordStatus) {