From e9a9ad64788c397b743df782de9fff864195675e Mon Sep 17 00:00:00 2001 From: jmt Date: Sat, 5 Dec 2009 10:55:55 +0000 Subject: [PATCH] Fix displaced threshold handling when using in-scenery definitions of runways. --- src/Airports/runways.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Airports/runways.cxx b/src/Airports/runways.cxx index c076d8cfc..3eb853823 100644 --- a/src/Airports/runways.cxx +++ b/src/Airports/runways.cxx @@ -151,9 +151,8 @@ void FGRunway::processThreshold(SGPropertyNode* aThreshold) _displ_thresh = aThreshold->getDoubleValue("displ-m") * SG_METER_TO_FEET; _stopway = aThreshold->getDoubleValue("stopw-m") * SG_METER_TO_FEET; - // compute the new runway center, based on the threshold lat/lon, length, - // and any displaced threshold. - double offsetFt = (0.5 * _length) - _displ_thresh; + // compute the new runway center, based on the threshold lat/lon and length, + double offsetFt = (0.5 * _length); SGGeod newCenter; double dummy; SGGeodesy::direct(newThreshold, _heading, offsetFt * SG_FEET_TO_METER, newCenter, dummy); -- 2.39.5