On Sat, 2009-11-14 at 09:09 +0100, Gijs de Rooy wrote: > Hi, > > > John Holden wrote: > > I'm using a fairly recent version of the CVS on Windows XP - I can't > tell you which exactly at the > > moment, unfortunately - but whenever I land or take off from a > center runway, I can't get the > > center runway texture to display, even though it's in the /Textures > folder with all the other runway > > textures. For example, at KMDW, when you close in on approach for > runway 13C, the "C" does not > > show, and all you see is the number "13". 13L and 13R appear to > work fine. > > Slightly related is a question I got at the FSweekend. Is FlightGear > able to show leading zeros on > the runways? Eg. 09, 04 etc. From what I see we do have support for it > in our textures > (Textures/Runway/pa_0l.png), but generating an airport with runway 09x > only gives 9... > > Cheers, > > Gijs >
It would be a trivial patch to genapts to always generate leading zeros, however it appears that all US General Aviation airports don't use the leading zero, US Military bases are mixed, and Europe uses leading zeros. Looking thru apt.dat it appears all runway numbers have the leading zero so we can't use that data to algorithmically determine the format to use... So here's the patch to always generate leading zeros, but should it be applied everywhere? diff --git a/src/Airports/GenAirports/rwy_common.cxx b/src/Airports/GenAirports/rwy_common.cxx index c5aef04..17a2ff5 100644 --- a/src/Airports/GenAirports/rwy_common.cxx +++ b/src/Airports/GenAirports/rwy_common.cxx @@ -52,7 +52,8 @@ void gen_number_block( const TGRunway& rwy_info, if ( num == 11 ) { sprintf( tex1, "11" ); } else if ( num < 10 ) { - sprintf( tex1, "%dc", num ); + sprintf( tex1, "%dl", 0 ); + sprintf( tex2, "%dr", num ); } else { sprintf( tex1, "%dl", num / 10 ); sprintf( tex2, "%dr", num - (num / 10 * 10)); ------------------------------------------------------------------------------ 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