sort the serverlist by whether we can join the game

This commit is contained in:
Chris Forbes
2011-12-31 10:58:31 +13:00
parent c34b254fd8
commit 004c59d273

View File

@@ -143,7 +143,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
searchStatus = SearchStatus.Hidden;
currentServer = games.FirstOrDefault();
foreach (var loop in games)
foreach (var loop in games.OrderBy(g => g.CanJoin() ? 0 : 1))
{
var game = loop;