From 53c7954f84de9d0d961b38281b99c50a808d13b2 Mon Sep 17 00:00:00 2001 From: rob-v Date: Wed, 31 May 2017 18:33:50 +0200 Subject: [PATCH] MP Browser - display current mod+version first --- OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs index 71601ab564..ead9e1eaf4 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs @@ -373,14 +373,14 @@ namespace OpenRA.Mods.Common.Widgets.Logic { // Games that we can't join are sorted last if (!testEntry.IsCompatible) - return 0; + return testEntry.ModId == modData.Manifest.Id ? 1 : 0; // Games for the current mod+version are sorted first if (testEntry.ModId == modData.Manifest.Id) - return 2; + return testEntry.ModVersion == modData.Manifest.Metadata.Version ? 4 : 3; // Followed by games for different mods that are joinable - return 1; + return 2; } void SelectServer(GameServer server)