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:
@@ -22,9 +22,6 @@ namespace OpenRA.Mods.Common.Server
|
||||
{
|
||||
lock (server.LobbyInfo)
|
||||
{
|
||||
if (server.LobbyInfo.ClientWithIndex(conn.PlayerIndex).IsAdmin)
|
||||
return;
|
||||
|
||||
var defaults = new Session.Global();
|
||||
LobbyCommands.LoadMapSettings(server, defaults, server.Map.Rules);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user