1
0
Fork 0

Make size of runway base depend on its width

This commit is contained in:
Christian Schmitt 2011-09-29 00:58:50 +02:00
parent 6ce3e16d4b
commit 324e6fc30f

View file

@ -282,16 +282,18 @@ static void build_runway( const TGRunway& rwy_info,
} }
TGPolygon base, safe_base; TGPolygon base, safe_base;
//Land runway
if (rwy_info.type == 100){ if (rwy_info.type == 100){
base = gen_runway_area_w_extend( rwy_info, 0.0, 20.0, -rwy_info.stopway1, -rwy_info.stopway2, 20.0 ); base = gen_runway_area_w_extend( rwy_info, 0.0, rwy_info.width * 0.25, -rwy_info.stopway1, -rwy_info.stopway2, rwy_info.width * 0.25 );
// also clear a safe area around the runway // also clear a safe area around the runway
safe_base = gen_runway_area_w_extend( rwy_info, 0.0, 180.0, -rwy_info.stopway1, -rwy_info.stopway2, 50.0 ); safe_base = gen_runway_area_w_extend( rwy_info, 0.0, rwy_info.width * 0.25, -rwy_info.stopway1, -rwy_info.stopway2, rwy_info.width * 0.25 );
*apt_clearing = tgPolygonUnion(safe_base, *apt_clearing); *apt_clearing = tgPolygonUnion(safe_base, *apt_clearing);
// add base to apt_base // add base to apt_base
*apt_base = tgPolygonUnion( base, *apt_base ); *apt_base = tgPolygonUnion( base, *apt_base );
} }
//Helipad
if (rwy_info.type == 102){ if (rwy_info.type == 102){
base = gen_runway_area_w_extend( rwy_info, 0.0, 10.0, 0, 0, 10.0 ); base = gen_runway_area_w_extend( rwy_info, 0.0, 10.0, 0, 0, 10.0 );
// also clear a safe area around the runway // also clear a safe area around the runway