From 3ff3ed39fb708683665e34e99101eef04ba26c4a Mon Sep 17 00:00:00 2001 From: Scott_NZ Date: Tue, 11 Dec 2012 14:33:54 +1300 Subject: [PATCH] Fix slight logic error with difficulty --- OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs index 7971619b79..ecd7effe55 100644 --- a/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs @@ -500,10 +500,12 @@ namespace OpenRA.Mods.RA.Server .ToDictionary(s => s.PlayerReference, s => s); if (server.Map.Difficulties != null && server.Map.Difficulties.Any()) + { if (!server.Map.Difficulties.Contains(server.lobbyInfo.GlobalSettings.Difficulty)) server.lobbyInfo.GlobalSettings.Difficulty = server.Map.Difficulties.First(); - else - server.lobbyInfo.GlobalSettings.Difficulty = null; + } + else + server.lobbyInfo.GlobalSettings.Difficulty = null; } } }