Integrated HitShapes

Integrated hit shapes with field loader and warhead calculations.
This commit is contained in:
Huw Pascoe
2015-10-29 16:58:07 +00:00
parent 5ef6d86f66
commit a8299221db
6 changed files with 40 additions and 15 deletions

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Lint
if (!warhead.ValidTargets.Overlaps(targetable))
continue;
if (healthTraits.Where(x => x.Radius.Length > warhead.TargetExtraSearchRadius.Length).Any())
if (healthTraits.Where(x => x.Shape.OuterRadius.Length > warhead.TargetExtraSearchRadius.Length).Any())
emitError("Actor type `{0}` has a health radius exceeding the victim scan radius of a warhead on `{1}`!"
.F(actorInfo.Key, weaponInfo.Key));
}