Change LoadMapSettings to accept a Ruleset.

This commit is contained in:
Paul Chote
2016-03-09 18:27:20 +00:00
parent d7bdc840d6
commit 43a3d42d31
2 changed files with 10 additions and 10 deletions

View File

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