From fc1032cd9edab582c460f715e0cf8752e5432abe Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 1 Jan 2021 22:44:52 +0000 Subject: [PATCH] Start rally point lines at the spawn position instead of the exit cell. --- OpenRA.Mods.Common/Effects/RallyPointIndicator.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Effects/RallyPointIndicator.cs b/OpenRA.Mods.Common/Effects/RallyPointIndicator.cs index efb8846a7f..cf4a40c283 100644 --- a/OpenRA.Mods.Common/Effects/RallyPointIndicator.cs +++ b/OpenRA.Mods.Common/Effects/RallyPointIndicator.cs @@ -72,8 +72,7 @@ namespace OpenRA.Mods.Common.Effects return; var exit = building.NearestExitOrDefault(targetLineNodes[0]); - var exitPos = exit != null ? building.World.Map.CenterOfCell(building.Location + exit.Info.ExitCell) : building.CenterPosition; - targetLineNodes.Insert(0, exitPos); + targetLineNodes.Insert(0, building.CenterPosition + (exit?.Info.SpawnOffset ?? WVec.Zero)); } IEnumerable IEffect.Render(WorldRenderer wr) { return SpriteRenderable.None; }