1
0
Fork 0

Ironing out bugs ...

This commit is contained in:
curt 2000-08-26 01:23:58 +00:00
parent b6fc19c0bc
commit 373ed3990d

View file

@ -1405,6 +1405,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
cerr << "Converting to a simple runway ... !" << endl; cerr << "Converting to a simple runway ... !" << endl;
gen_simple_rwy( rwy_info, "grass_rwy", gen_simple_rwy( rwy_info, "grass_rwy",
rwy_polys, texparams, accum ); rwy_polys, texparams, accum );
return;
} }
double start_pct = 0; double start_pct = 0;
@ -1482,6 +1483,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
start_pct = end_pct; start_pct = end_pct;
end_pct = start_pct + ( 500 / length ); end_pct = start_pct + ( 500 / length );
if ( end_pct > 1.0 ) { end_pct = 1.0; }
gen_runway_section( rwy_info, runway_a, gen_runway_section( rwy_info, runway_a,
start_pct, end_pct, start_pct, end_pct,
0.0, 1.0, 0.0, 1.0,
@ -1500,21 +1502,23 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
// The rest ... // The rest ...
// //
start_pct = end_pct; if ( end_pct < 1.0 ) {
end_pct = 1.0; start_pct = end_pct;
gen_runway_section( rwy_info, runway_a, end_pct = 1.0;
start_pct, end_pct, gen_runway_section( rwy_info, runway_a,
0.0, 1.0, start_pct, end_pct,
rwy_info.heading, 0.0, 1.0,
material, "rest", rwy_info.heading,
rwy_polys, texparams, accum ); material, "rest",
rwy_polys, texparams, accum );
gen_runway_section( rwy_info, runway_b, gen_runway_section( rwy_info, runway_b,
start_pct, end_pct, start_pct, end_pct,
0.0, 1.0, 0.0, 1.0,
rwy_info.heading + 180.0, rwy_info.heading + 180.0,
material, "rest", material, "rest",
rwy_polys, texparams, accum ); rwy_polys, texparams, accum );
}
} }