Anders Gidenstam <anders-...@gidenstam.org> writes: > I wonder if anyone alse has noticd that the startup location on > runways with a displaced threshold differs depending on whether the > custom scenery <ICAO>.threshold.xml file or apt.dat is used?
i've solved this problem by applying the following patch to flightgear: diff -u -r1.43 runways.cxx --- ./Airports/runways.cxx 16 Sep 2009 00:17:12 -0000 1.43 +++ ./Airports/runways.cxx 16 Nov 2009 21:33:10 -0000 @@ -153,7 +153,7 @@ // compute the new runway center, based on the threshold lat/lon, length, // and any displaced threshold. - double offsetFt = (0.5 * _length) - _displ_thresh; + double offsetFt = (0.5 * _length) + _displ_thresh; SGGeod newCenter; double dummy; SGGeodesy::direct(newThreshold, _heading, offsetFt * SG_FEET_TO_METER, newCenter, dummy); and now the plane is positioned at the beginning of the runway proper. if --prop:/sim/paths/use-custom-scenery-data is set to false than the aircraft is positioned at the beginning of the threshold. i think this is the right fix but somebody more knowledgable should take a look and maybe commit it to cvs. thanks. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel