From 7424139772d124d85be4fd91bc85e76e28f3db50 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 29 Mar 2012 21:06:22 +0200 Subject: [PATCH] Fix the stopway texturing. Cleanup a bit. This needs negative pct values. --- src/Airports/GenAirports850/rwy_gen.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Airports/GenAirports850/rwy_gen.cxx b/src/Airports/GenAirports850/rwy_gen.cxx index 2ef8f942..80192a3c 100644 --- a/src/Airports/GenAirports850/rwy_gen.cxx +++ b/src/Airports/GenAirports850/rwy_gen.cxx @@ -116,10 +116,6 @@ void Runway::gen_runway_section( const TGPolygon& runway, endl_pct += nudge * SG_EPSILON; } - if ( startl_pct < 0.0 ) { - startl_pct = 0.0; - } - if ( 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; 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, heading, @@ -554,7 +550,6 @@ void Runway::gen_rwy( superpoly_list *rwy_polys, rwy_polys, texparams, accum, slivers ); } - length = rwy.length / 2.0 + 2.0 * SG_FEET_TO_METER; start1_pct = 0.0; end1_pct = 0.0;