Make the Enter activity use the closest target position.

This commit is contained in:
Paul Chote
2017-06-17 12:20:37 +00:00
committed by Oliver Brakmann
parent 995a3da43a
commit 4b4172f757
2 changed files with 13 additions and 4 deletions

View File

@@ -959,7 +959,7 @@ namespace OpenRA.Mods.Common.Traits
if (target.Type == TargetType.Invalid)
return null;
return VisualMove(self, self.CenterPosition, target.CenterPosition);
return VisualMove(self, self.CenterPosition, target.Positions.PositionClosestTo(self.CenterPosition));
}
public bool CanEnterTargetNow(Actor self, Target target)