From bec879cf7cfda57a18cf3851c0ff2cde1a631401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 5 Jun 2016 13:55:10 +0200 Subject: [PATCH] Don't check modulare actor templates as the inherited combinations of the actors are of concern. --- OpenRA.Mods.Common/Lint/CheckUpgrades.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenRA.Mods.Common/Lint/CheckUpgrades.cs b/OpenRA.Mods.Common/Lint/CheckUpgrades.cs index 29e6619785..f198ecea31 100644 --- a/OpenRA.Mods.Common/Lint/CheckUpgrades.cs +++ b/OpenRA.Mods.Common/Lint/CheckUpgrades.cs @@ -31,6 +31,9 @@ namespace OpenRA.Mods.Common.Lint foreach (var actorInfo in rules.Actors) { + if (actorInfo.Key.StartsWith("^")) + continue; + foreach (var trait in actorInfo.Value.TraitInfos()) { var fields = trait.GetType().GetFields(); @@ -51,6 +54,9 @@ namespace OpenRA.Mods.Common.Lint // Check all upgrades granted by traits. foreach (var actorInfo in rules.Actors) { + if (actorInfo.Key.StartsWith("^")) + continue; + foreach (var trait in actorInfo.Value.TraitInfos()) { var fields = trait.GetType().GetFields();