1
0
Fork 0

Make shoulder width dependent on runway width

This commit is contained in:
Delta Echo 2020-01-04 12:43:16 +01:00
parent 8e40cf26b3
commit 8f0c836c04

View file

@ -183,10 +183,10 @@ void Runway::gen_runway_section( const tgPolygon& runway,
} }
if ( startw_pct == 0.0f ) { if ( startw_pct == 0.0f ) {
lshoulder_width = 11.0; lshoulder_width = width/4.0;
} }
if ( endw_pct == 1.0f ) { if ( endw_pct == 1.0f ) {
rshoulder_width = 11.0; rshoulder_width = width/4.0;
} }
} else { } else {
// We add a fake shoulder if the runway has an asphalt or concrete surface // We add a fake shoulder if the runway has an asphalt or concrete surface
@ -882,4 +882,4 @@ void Runway::BuildShoulder( tgpolygon_list& rwy_polys,
rwy_polys.push_back( shoulder_polys[i] ); rwy_polys.push_back( shoulder_polys[i] );
accum.Add( shoulder ); accum.Add( shoulder );
} }
} }