From fc38d6982312e9b9e1330c4cf0fc49cc49598b81 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Mon, 8 Aug 2011 19:12:14 +0200 Subject: [PATCH] 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. --- src/Scenery/scenery.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5