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;
gen_simple_rwy( rwy_info, "grass_rwy",
rwy_polys, texparams, accum );
return;
}
double start_pct = 0;
@ -1482,6 +1483,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
start_pct = end_pct;
end_pct = start_pct + ( 500 / length );
if ( end_pct > 1.0 ) { end_pct = 1.0; }
gen_runway_section( rwy_info, runway_a,
start_pct, end_pct,
0.0, 1.0,
@ -1500,6 +1502,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
// The rest ...
//
if ( end_pct < 1.0 ) {
start_pct = end_pct;
end_pct = 1.0;
gen_runway_section( rwy_info, runway_a,
@ -1515,6 +1518,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
rwy_info.heading + 180.0,
material, "rest",
rwy_polys, texparams, accum );
}
}