Add 'Crates' lobby checkbox and setting for enabling/disabling crate drops

This commit is contained in:
Scott_NZ
2013-02-16 15:14:37 +13:00
parent a083554218
commit 026a86ba75
5 changed files with 33 additions and 1 deletions

View File

@@ -318,6 +318,19 @@ namespace OpenRA.Mods.RA.Server
server.SyncLobbyInfo();
return true;
}},
{ "crates",
s =>
{
if (!client.IsAdmin)
{
server.SendChatTo(conn, "Only the host can set that option");
return true;
}
bool.TryParse(s, out server.lobbyInfo.GlobalSettings.Crates);
server.SyncLobbyInfo();
return true;
}},
{ "difficulty",
s =>
{