Fix armaments/projectiles to aim at closest Target.Positions

Instead of CenterPosition.
TargetablePositions were already used for targeting/attack decisions, but not armaments/projectiles.
This commit is contained in:
reaperrr
2017-04-21 14:06:56 +02:00
committed by Oliver Brakmann
parent 73577e3a7e
commit 7acc6dacbc
7 changed files with 13 additions and 6 deletions

View File

@@ -229,7 +229,7 @@ namespace OpenRA.Mods.Common.Traits
Source = muzzlePosition(),
CurrentSource = muzzlePosition,
SourceActor = self,
PassiveTarget = target.CenterPosition,
PassiveTarget = target.Positions.PositionClosestTo(muzzlePosition()),
GuidedTarget = target
};