1
0
Fork 0

Fix the stopway texturing. Cleanup a bit.

This needs negative pct values.
This commit is contained in:
Christian Schmitt 2012-03-29 21:06:22 +02:00
parent 449720c858
commit 7424139772

View file

@ -116,10 +116,6 @@ void Runway::gen_runway_section( const TGPolygon& runway,
endl_pct += nudge * SG_EPSILON; endl_pct += nudge * SG_EPSILON;
} }
if ( startl_pct < 0.0 ) {
startl_pct = 0.0;
}
if ( endl_pct > 1.0 ) { if ( endl_pct > 1.0 ) {
endl_pct = 1.0; endl_pct = 1.0;
} }
@ -546,7 +542,7 @@ void Runway::gen_rwy( superpoly_list *rwy_polys,
end1_pct = start1_pct + rest1_inc; end1_pct = start1_pct + rest1_inc;
gen_runway_section( runway_half, gen_runway_section( runway_half,
start1_pct, end1_pct, start1_pct, end1_pct,
0.0, 1.0, 0.0, 1.0,
0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0,
heading, heading,
@ -554,7 +550,6 @@ void Runway::gen_rwy( superpoly_list *rwy_polys,
rwy_polys, texparams, accum, slivers ); rwy_polys, texparams, accum, slivers );
} }
length = rwy.length / 2.0 + 2.0 * SG_FEET_TO_METER;
start1_pct = 0.0; start1_pct = 0.0;
end1_pct = 0.0; end1_pct = 0.0;