Use the CenterPosition as the starting position.

This commit is contained in:
Paul Chote
2019-01-05 18:41:48 +00:00
committed by abcdefg30
parent 0c7158efcd
commit ae38133c9f

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Cnc.Activities
if (targetMobile != null)
destinationSubCell = targetMobile.ToSubCell;
origin = self.World.Map.CenterOfSubCell(self.Location, mobile.FromSubCell);
origin = self.CenterPosition;
destination = self.World.Map.CenterOfSubCell(destinationCell, destinationSubCell);
length = Math.Max((origin - destination).Length / speed, 1);