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:
parent
c28825d9de
commit
fc38d69823
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue