Remove first-client check from LobbySettingsNotification.

ClientWithIndex may rarely be null, causing a crash.
In any case we do want to report these changes to the first client, as
somebody else may have changed the settings and left.
This commit is contained in:
Paul Chote
2021-01-03 13:18:58 +00:00
committed by reaperrr
parent 84ced8704d
commit b05ee80d5c

View File

@@ -22,9 +22,6 @@ namespace OpenRA.Mods.Common.Server
{ {
lock (server.LobbyInfo) lock (server.LobbyInfo)
{ {
if (server.LobbyInfo.ClientWithIndex(conn.PlayerIndex).IsAdmin)
return;
var defaults = new Session.Global(); var defaults = new Session.Global();
LobbyCommands.LoadMapSettings(server, defaults, server.Map.Rules); LobbyCommands.LoadMapSettings(server, defaults, server.Map.Rules);