Fix bug #185 - altitude ignored when adding waypoints to the route.
This commit is contained in:
parent
7a2e1be5bf
commit
f7548fec1f
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ BasicWaypt::BasicWaypt(const SGGeod& aPos, const string& aIdent, Route* aOwner)
|
||||||
_pos(aPos),
|
_pos(aPos),
|
||||||
_ident(aIdent)
|
_ident(aIdent)
|
||||||
{
|
{
|
||||||
|
if (aPos.getElevationFt() > -999.0) {
|
||||||
|
setAltitude(aPos.getElevationFt(), RESTRICT_AT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BasicWaypt::BasicWaypt(const SGWayPoint& aWP, Route* aOwner) :
|
BasicWaypt::BasicWaypt(const SGWayPoint& aWP, Route* aOwner) :
|
||||||
|
|
Loading…
Reference in a new issue