Change LoadMapSettings to accept a Ruleset.
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
return;
|
||||
|
||||
var defaults = new Session.Global();
|
||||
LobbyCommands.LoadMapSettings(defaults, server.Map);
|
||||
LobbyCommands.LoadMapSettings(defaults, server.Map.Rules);
|
||||
|
||||
if (server.LobbyInfo.GlobalSettings.AllowCheats != defaults.AllowCheats)
|
||||
server.SendOrderTo(conn, "Message", "Allow Cheats: {0}".F(server.LobbyInfo.GlobalSettings.AllowCheats));
|
||||
|
||||
Reference in New Issue
Block a user