X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Frunways.cxx;h=3eb853823e4d39f0927fcba599c71f3d08750217;hb=386aefe69358ce41a11c9afeb8f56e26758fe56b;hp=c076d8cfc1ff0f44d5f3233742256abab563ca01;hpb=7a14ec7e320bd2786a041e8801b79cd87d6dc1d1;p=flightgear.git 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);