]> git.mxchange.org Git - flightgear.git/commitdiff
Fix displaced threshold handling when using in-scenery definitions of runways.
authorjmt <jmt>
Sat, 5 Dec 2009 10:55:55 +0000 (10:55 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 6 Dec 2009 23:13:57 +0000 (00:13 +0100)
src/Airports/runways.cxx

index c076d8cfc1ff0f44d5f3233742256abab563ca01..3eb853823e4d39f0927fcba599c71f3d08750217 100644 (file)
@@ -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);