1
0
Fork 0

Fixed taxiway drawing order. genapts wants them from top to bottom, not from bottom to top, as it was previously fed.

This commit is contained in:
Ralf Gerlich 2008-03-29 13:01:43 +01:00
parent 53efe44bfd
commit 101cae53ad

View file

@ -609,12 +609,12 @@ void build_airport( string airport_id, float alt_m,
}
#else
/* Ralf Gerlich: Generate Taxiways in specified order from bottom to top */
for ( size_t i=0; i<taxiways.size(); ++i ) {
for ( size_t i=taxiways.size(); i>0; --i ) {
SG_LOG( SG_GENERAL, SG_DEBUG, "generating " << i );
build_runway( taxiways[i], alt_m,
build_runway( taxiways[i-1], alt_m,
&rwy_polys, &texparams, &accum,
&apt_base, &apt_clearing );
taxiways[i].generated = true;
taxiways[i-1].generated = true;
}
#endif