Include version/mod/modversion in the game list query.

This commit is contained in:
Paul Chote
2016-04-27 21:43:31 +01:00
parent 98faa15d62
commit 25a1c0c283

View File

@@ -315,7 +315,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
Game.RunAfterTick(() => RefreshServerListInner(games));
};
currentQuery = new Download(Game.Settings.Server.MasterServer + "games", _ => { }, onComplete);
var queryURL = Game.Settings.Server.MasterServer + "games?version={0}&mod={1}&modversion={2}".F(
Uri.EscapeUriString(ModMetadata.AllMods["modchooser"].Version),
Uri.EscapeUriString(Game.ModData.Manifest.Mod.Id),
Uri.EscapeUriString(Game.ModData.Manifest.Mod.Version));
currentQuery = new Download(queryURL, _ => { }, onComplete);
}
int GroupSortOrder(GameServer testEntry)