From ecc65e4fe424e29d6a1da7e36be8d3b7e073e75f Mon Sep 17 00:00:00 2001 From: Zimmermann Gyula Date: Sat, 27 Aug 2016 16:41:52 +0200 Subject: [PATCH] Do not apply the cell's Z offset twice during crate positioning. --- OpenRA.Mods.Common/Traits/Crates/Crate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Crates/Crate.cs b/OpenRA.Mods.Common/Traits/Crates/Crate.cs index 66934dd259..422ef39c3c 100644 --- a/OpenRA.Mods.Common/Traits/Crates/Crate.cs +++ b/OpenRA.Mods.Common/Traits/Crates/Crate.cs @@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common.Traits { var cell = self.World.Map.CellContaining(pos); SetLocation(self, cell); - SetVisualPosition(self, self.World.Map.CenterOfCell(cell) + new WVec(0, 0, pos.Z)); + SetVisualPosition(self, self.World.Map.CenterOfCell(cell) + new WVec(WDist.Zero, WDist.Zero, self.World.Map.DistanceAboveTerrain(pos))); } // Sets the location (Location) and visual position (CenterPosition)