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:
parent
53efe44bfd
commit
101cae53ad
1 changed files with 3 additions and 3 deletions
|
@ -609,12 +609,12 @@ void build_airport( string airport_id, float alt_m,
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* Ralf Gerlich: Generate Taxiways in specified order from bottom to top */
|
/* 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 );
|
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,
|
&rwy_polys, &texparams, &accum,
|
||||||
&apt_base, &apt_clearing );
|
&apt_base, &apt_clearing );
|
||||||
taxiways[i].generated = true;
|
taxiways[i-1].generated = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue