Oppress undesired messages about difficulty changes

This commit is contained in:
abcdefg30
2014-12-25 23:23:52 +01:00
parent 9e0bd02e39
commit e4c562ca53

View File

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