From a40b72b15b2ddb397117a65bb95d9b6af5ca3d85 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Wed, 8 Feb 2012 13:09:39 +0100 Subject: [PATCH] Only generate helipad lights if the apt.dat entry says so --- src/Airports/GenAirports850/helipad.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Airports/GenAirports850/helipad.cxx b/src/Airports/GenAirports850/helipad.cxx index 1489fec0..eade6223 100644 --- a/src/Airports/GenAirports850/helipad.cxx +++ b/src/Airports/GenAirports850/helipad.cxx @@ -129,9 +129,12 @@ void Helipad::BuildBtg( float alt_m, *apt_base = tgPolygonUnion( base, *apt_base ); } - // Now generate the helipad lights - superpoly_list s = gen_helipad_lights(); - for ( unsigned int i = 0; i < s.size(); ++i ) { - rwy_lights->push_back( s[i] ); + if (heli.edge_lights) + { + // Now generate the helipad lights + superpoly_list s = gen_helipad_lights(); + for ( unsigned int i = 0; i < s.size(); ++i ) { + rwy_lights->push_back( s[i] ); + } } }