Allow mods to define a list of compatible map sources. Fixes #4319.

This commit is contained in:
Paul Chote
2013-12-19 14:30:44 +13:00
parent 7ae831381a
commit 6406e1d052
3 changed files with 13 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ namespace OpenRA
try
{
var map = new Map(path, Manifest.Mod.Id);
if (map.RequiresMod == Manifest.Mod.Id)
if (Manifest.MapCompatibility.Contains(map.RequiresMod))
ret.Add(map.Uid, map);
}
catch (Exception e)