From ab8c35123be67ff9ae8dfb256b7d3e2a9c19ffe7 Mon Sep 17 00:00:00 2001 From: Guido Lipke Date: Tue, 4 Oct 2016 14:39:21 +0200 Subject: [PATCH] [Lint] Report when Maps contains invalid custom rules. Report when Maps contains invalid custom rules. --- OpenRA.Mods.Common/Lint/CheckMapMetadata.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Lint/CheckMapMetadata.cs b/OpenRA.Mods.Common/Lint/CheckMapMetadata.cs index 28a3d8b48f..7eb83c41d2 100644 --- a/OpenRA.Mods.Common/Lint/CheckMapMetadata.cs +++ b/OpenRA.Mods.Common/Lint/CheckMapMetadata.cs @@ -31,6 +31,9 @@ namespace OpenRA.Mods.Common.Lint if (!map.Categories.Any()) emitError("Map does not define any categories."); + + if (map.InvalidCustomRules) + emitError("Map contains invalid custom rules."); } } } \ No newline at end of file