Fix paratroopers on heightmapped terrain

This commit is contained in:
abcdefg30
2016-04-02 11:36:31 +02:00
parent f38d30a1ff
commit d9d78715cd
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);
}