MP Browser - display current mod+version first

This commit is contained in:
rob-v
2017-05-31 18:33:50 +02:00
committed by abcdefg30
parent 7237fd83c6
commit 53c7954f84

View File

@@ -373,14 +373,14 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ {
// Games that we can't join are sorted last // Games that we can't join are sorted last
if (!testEntry.IsCompatible) if (!testEntry.IsCompatible)
return 0; return testEntry.ModId == modData.Manifest.Id ? 1 : 0;
// Games for the current mod+version are sorted first // Games for the current mod+version are sorted first
if (testEntry.ModId == modData.Manifest.Id) 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 // Followed by games for different mods that are joinable
return 1; return 2;
} }
void SelectServer(GameServer server) void SelectServer(GameServer server)