Fixed difficulty code indentation

This commit is contained in:
Scott_NZ
2012-12-12 13:21:48 +13:00
parent 4b2e45bbae
commit 799a2ea541

View File

@@ -320,22 +320,22 @@ namespace OpenRA.Mods.RA.Server
}},
{ "difficulty",
s =>
{
if (!client.IsAdmin)
{
if (!client.IsAdmin)
{
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();
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;
}},
{ "kick",
s =>