1
0
Fork 0

Ignore SGGeod altitude when creating BasicWaypt.

This logic was only ever causing bad values, all callers which care
about an altitude restriction were setting one explicitly. Thanks to
Curt for spotting it.
This commit is contained in:
James Turner 2013-07-22 18:11:07 +01:00
parent 948aa70af7
commit a1451f592f

View file

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