New serverbrowser for RA and CNC

This commit is contained in:
Curtis S
2011-11-06 22:49:40 -07:00
parent 49bf93085f
commit 77fc6199fe
4 changed files with 146 additions and 261 deletions

View File

@@ -52,6 +52,15 @@ namespace OpenRA.Network
if (Game.CurrentMods.Count != Mods.Count())
return false;
// Don't have the map locally
if (!Game.modData.AvailableMaps.ContainsKey(Map))
return false;
return CompatibleVersion();
}
public bool CompatibleVersion()
{
return UsefulMods.All(m => Game.CurrentMods.ContainsKey(m.Key)
&& AreVersionsCompatible(m.Value, Game.CurrentMods[m.Key].Version));
}