Ironing out bugs ...
This commit is contained in:
parent
b6fc19c0bc
commit
373ed3990d
1 changed files with 18 additions and 14 deletions
|
@ -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,6 +1502,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
|
||||||
// The rest ...
|
// The rest ...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
if ( end_pct < 1.0 ) {
|
||||||
start_pct = end_pct;
|
start_pct = end_pct;
|
||||||
end_pct = 1.0;
|
end_pct = 1.0;
|
||||||
gen_runway_section( rwy_info, runway_a,
|
gen_runway_section( rwy_info, runway_a,
|
||||||
|
@ -1516,6 +1519,7 @@ static void gen_non_precision_rwy( const FGRunway& rwy_info,
|
||||||
material, "rest",
|
material, "rest",
|
||||||
rwy_polys, texparams, accum );
|
rwy_polys, texparams, accum );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// build 3d airport
|
// build 3d airport
|
||||||
|
|
Loading…
Add table
Reference in a new issue