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:
committed by
Oliver Brakmann
parent
73577e3a7e
commit
7acc6dacbc
@@ -128,7 +128,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
{
|
||||
// Beam tracks target
|
||||
if (info.TrackTarget && args.GuidedTarget.IsValidFor(args.SourceActor))
|
||||
target = args.GuidedTarget.CenterPosition;
|
||||
target = args.GuidedTarget.Positions.PositionClosestTo(source);
|
||||
|
||||
// Check for blocking actors
|
||||
WPos blockedPos;
|
||||
|
||||
Reference in New Issue
Block a user