Fix units considering terrain when entering other actors

This commit is contained in:
Gustas
2023-09-22 12:14:03 +03:00
committed by Matthias Mailänder
parent e0df59464e
commit b25146265d
2 changed files with 7 additions and 10 deletions

View File

@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Activities
case EnterState.Entering:
{
// Check that we reached the requested position
var targetPos = target.Positions.ClosestToWithPathFrom(self);
var targetPos = target.Positions.ClosestToIgnoringPath(self.CenterPosition);
if (!IsCanceling && self.CenterPosition == targetPos && target.Type == TargetType.Actor)
OnEnterComplete(self, target.Actor);