From ae38133c9fcc4060f1b1d602787fca242a6657ce Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 5 Jan 2019 18:41:48 +0000 Subject: [PATCH] Use the CenterPosition as the starting position. --- OpenRA.Mods.Cnc/Activities/Leap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/Activities/Leap.cs b/OpenRA.Mods.Cnc/Activities/Leap.cs index 1d936d495e..a1a544754e 100644 --- a/OpenRA.Mods.Cnc/Activities/Leap.cs +++ b/OpenRA.Mods.Cnc/Activities/Leap.cs @@ -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);