From 04c61727f79c0d3482b3892b730565472205d647 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 2 Sep 2015 16:06:05 +0100 Subject: [PATCH 1/4] =?UTF-8?q?Don=E2=80=99t=20sample=20map=20height=20whe?= =?UTF-8?q?n=20calculating=20building=20centers.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenRA.Mods.Common/Traits/Buildings/FootprintUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Buildings/FootprintUtils.cs b/OpenRA.Mods.Common/Traits/Buildings/FootprintUtils.cs index 172fe00600..4b890f681c 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/FootprintUtils.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/FootprintUtils.cs @@ -65,7 +65,8 @@ namespace OpenRA.Mods.Common.Traits public static WVec CenterOffset(World w, BuildingInfo buildingInfo) { var dim = buildingInfo.Dimensions; - return (w.Map.CenterOfCell(CPos.Zero + new CVec(dim.X, dim.Y)) - w.Map.CenterOfCell(new CPos(1, 1))) / 2; + var off = (w.Map.CenterOfCell(new CPos(dim.X, dim.Y)) - w.Map.CenterOfCell(new CPos(1, 1))) / 2; + return off - new WVec(0, 0, off.Z); } } } From abce4678cadb6d2c657fccc9fb04c2327468a0e8 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 2 Sep 2015 16:18:27 +0100 Subject: [PATCH 2/4] Fix Nod advanced power plant offset. --- mods/ts/sequences/structures.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index d53950bec2..e49dc26472 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -232,7 +232,7 @@ napowr: naapwr: Defaults: - Offset: 12, -40 + Offset: 12, -30 UseTilesetCode: true idle: ShadowStart: 3 From 291ba0e664c87c11288984095003ab64aba88ad2 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 2 Sep 2015 16:18:37 +0100 Subject: [PATCH 3/4] Fix GDI upgrade center offset. --- mods/ts/sequences/structures.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index e49dc26472..49460f35e3 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -1176,7 +1176,7 @@ namisl: gaplug: Defaults: - Offset: 12, -40 + Offset: 12, -28 UseTilesetCode: true idle: ShadowStart: 3 From 7063d785a3dbd34a41464a97bb63699aa63dfaf8 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 2 Sep 2015 16:22:24 +0100 Subject: [PATCH 4/4] Fix Nod stealth generator offsets. --- mods/ts/sequences/structures.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index 49460f35e3..ce9296e39c 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -711,7 +711,7 @@ napuls.nod: nastlh: Defaults: - Offset: -6, -30 + Offset: -16, -28 UseTilesetCode: true idle: ShadowStart: 3