Do not apply the cell's Z offset twice during crate positioning.

This commit is contained in:
Zimmermann Gyula
2016-08-27 16:41:52 +02:00
parent 0eb06c5abe
commit ecc65e4fe4

View File

@@ -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)