Fix units considering terrain when entering other actors
This commit is contained in:
committed by
Matthias Mailänder
parent
e0df59464e
commit
b25146265d
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user