From e4c562ca5304ba6e0516150cdda4b0d17cfe8c7a Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 25 Dec 2014 23:23:52 +0100 Subject: [PATCH] Oppress undesired messages about difficulty changes --- OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs index 30361addf2..27d7d772c1 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs @@ -572,6 +572,9 @@ namespace OpenRA.Mods.Common.Server { "difficulty", s => { + if (!server.Map.Options.Difficulties.Any()) + return true; + if (!client.IsAdmin) { server.SendOrderTo(conn, "Message", "Only the host can set that option.");