From: Mathias Froehlich Date: Mon, 8 Aug 2011 17:12:14 +0000 (+0200) Subject: Fixes #397: YASim aircraft start at >32000ft instead of runway X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc38d6982312e9b9e1330c4cf0fc49cc49598b81;p=flightgear.git 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. --- diff --git a/src/Scenery/scenery.cxx b/src/Scenery/scenery.cxx index ebf36ae28..12c3ebb69 100644 --- a/src/Scenery/scenery.cxx +++ b/src/Scenery/scenery.cxx @@ -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();