Merge pull request #11015 from abcdefg30/paraGround

Fix paratroopers on heightmapped terrain
This commit is contained in:
Matthias Mailänder
2016-04-02 11:46:43 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -422,7 +422,7 @@ namespace OpenRA.Mods.Common.Traits
{
var cell = self.World.Map.CellContaining(pos);
SetLocation(cell, FromSubCell, cell, FromSubCell);
SetVisualPosition(self, self.World.Map.CenterOfSubCell(cell, FromSubCell) + new WVec(0, 0, pos.Z));
SetVisualPosition(self, self.World.Map.CenterOfSubCell(cell, FromSubCell) + new WVec(0, 0, self.World.Map.DistanceAboveTerrain(pos).Length));
FinishedMoving(self);
}