Add "Build off Ally ConYards" option. Fixes #2464.

This commit is contained in:
Paul Chote
2013-08-17 12:28:40 +12:00
parent 059c88ca1b
commit ce41eb2361
25 changed files with 81 additions and 6 deletions

View File

@@ -437,6 +437,25 @@ namespace OpenRA.Mods.RA.Server
server.SyncLobbyInfo();
return true;
}},
{ "allybuildradius",
s =>
{
if (!client.IsAdmin)
{
server.SendOrderTo(conn, "Message", "Only the host can set that option");
return true;
}
if (server.Map.Options.AllyBuildRadius.HasValue)
{
server.SendOrderTo(conn, "Message", "Map has disabled ally build radius configuration");
return true;
}
bool.TryParse(s, out server.lobbyInfo.GlobalSettings.AllyBuildRadius);
server.SyncLobbyInfo();
return true;
}},
{ "difficulty",
s =>
{