Fix option reporting when joining a server.

This commit is contained in:
Paul Chote
2016-03-03 20:34:49 +00:00
parent 3635888dd9
commit 61e17b8c86
2 changed files with 29 additions and 24 deletions

View File

@@ -24,6 +24,7 @@ namespace OpenRA.Mods.Common.Server
return;
var defaults = new Session.Global();
LobbyCommands.LoadMapSettings(defaults, server.Map);
if (server.LobbyInfo.GlobalSettings.AllowCheats != defaults.AllowCheats)
server.SendOrderTo(conn, "Message", "Allow Cheats: {0}".F(server.LobbyInfo.GlobalSettings.AllowCheats));