Keep Discord join button active for spectators.

This commit is contained in:
Paul Chote
2021-01-03 23:02:24 +00:00
committed by reaperrr
parent b05ee80d5c
commit 4251ed69bb

View File

@@ -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)
{