1
0
Fork 0

Fixes #397: YASim aircraft start at >32000ft instead of runway

The usual 'modify code before checkin but past testing' Problem.
Return the elevation of the intersection result instead of the
elevation of the querys start point.
This commit is contained in:
Mathias Froehlich 2011-08-08 19:12:14 +02:00
parent c28825d9de
commit fc38d69823

View file

@ -285,7 +285,7 @@ FGScenery::get_elevation_m(const SGGeod& geod, double& alt,
return false;
geodEnd = SGGeod::fromCart(intersectVisitor.getLineSegment().getEnd());
alt = geod.getElevationM();
alt = geodEnd.getElevationM();
if (material)
*material = intersectVisitor.getMaterial();