Make the Enter activity use the closest target position.
This commit is contained in:
committed by
Oliver Brakmann
parent
995a3da43a
commit
4b4172f757
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user