From: jmt Date: Sat, 5 Dec 2009 10:55:55 +0000 (+0000) Subject: Fix displaced threshold handling when using in-scenery definitions of runways. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9a9ad64788c397b743df782de9fff864195675e;p=flightgear.git Fix displaced threshold handling when using in-scenery definitions of runways. --- 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);