Merge pull request #11899 from GraionDilach/gen2-crate-paradrop

Do not apply the cell's Z offset twice during crate positioning.
This commit is contained in:
Paul Chote
2016-08-29 13:47:41 +01:00
committed by GitHub

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)