1
0
Fork 0

Fix bug #185 - altitude ignored when adding waypoints to the route.

This commit is contained in:
James Turner 2010-12-01 23:57:01 +00:00
parent 7a2e1be5bf
commit f7548fec1f

View file

@ -39,6 +39,9 @@ BasicWaypt::BasicWaypt(const SGGeod& aPos, const string& aIdent, Route* aOwner)
_pos(aPos),
_ident(aIdent)
{
if (aPos.getElevationFt() > -999.0) {
setAltitude(aPos.getElevationFt(), RESTRICT_AT);
}
}
BasicWaypt::BasicWaypt(const SGWayPoint& aWP, Route* aOwner) :