Fixed difficulty code indentation
This commit is contained in:
@@ -320,22 +320,22 @@ namespace OpenRA.Mods.RA.Server
|
|||||||
}},
|
}},
|
||||||
{ "difficulty",
|
{ "difficulty",
|
||||||
s =>
|
s =>
|
||||||
|
{
|
||||||
|
if (!client.IsAdmin)
|
||||||
{
|
{
|
||||||
if (!client.IsAdmin)
|
server.SendChatTo(conn, "Only the host can set that option");
|
||||||
{
|
|
||||||
server.SendChatTo(conn, "Only the host can set that option");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if ((server.Map.Difficulties == null && s != null) || (server.Map.Difficulties != null && !server.Map.Difficulties.Contains(s)))
|
|
||||||
{
|
|
||||||
server.SendChatTo(conn, "Unsupported difficulty selected: {0}".F(s));
|
|
||||||
server.SendChatTo(conn, "Supported difficulties: {0}".F(server.Map.Difficulties.JoinWith(",")));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
server.lobbyInfo.GlobalSettings.Difficulty = s;
|
|
||||||
server.SyncLobbyInfo();
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
if ((server.Map.Difficulties == null && s != null) || (server.Map.Difficulties != null && !server.Map.Difficulties.Contains(s)))
|
||||||
|
{
|
||||||
|
server.SendChatTo(conn, "Unsupported difficulty selected: {0}".F(s));
|
||||||
|
server.SendChatTo(conn, "Supported difficulties: {0}".F(server.Map.Difficulties.JoinWith(",")));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
server.lobbyInfo.GlobalSettings.Difficulty = s;
|
||||||
|
server.SyncLobbyInfo();
|
||||||
|
return true;
|
||||||
}},
|
}},
|
||||||
{ "kick",
|
{ "kick",
|
||||||
s =>
|
s =>
|
||||||
|
|||||||
Reference in New Issue
Block a user