don't check map.yaml with empty Rules: section
This commit is contained in:
@@ -63,6 +63,14 @@ namespace OpenRA.Lint
|
|||||||
|
|
||||||
foreach (var testMap in maps)
|
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)
|
if (verbose)
|
||||||
Console.WriteLine("Map: {0}".F(testMap.Title));
|
Console.WriteLine("Map: {0}".F(testMap.Title));
|
||||||
Rules.LoadRules(Game.modData.Manifest, testMap);
|
Rules.LoadRules(Game.modData.Manifest, testMap);
|
||||||
|
|||||||
Reference in New Issue
Block a user