don't check map.yaml with empty Rules: section

This commit is contained in:
Matthias Mailänder
2014-03-14 10:53:03 +01:00
parent ee6eac2436
commit bc7c4ea6cd

View File

@@ -63,6 +63,14 @@ namespace OpenRA.Lint
foreach (var testMap in maps)
{
if (testMap.Rules.Count < 1)
{
if (verbose)
Console.WriteLine("No custom rules detected. Omitting Map: {0}".F(testMap.Title));
continue;
}
if (verbose)
Console.WriteLine("Map: {0}".F(testMap.Title));
Rules.LoadRules(Game.modData.Manifest, testMap);