X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Fapt_loader.cxx;h=8bb9924e6a94e8269015683f7d3304ef3b8f3150;hb=e16f772e54216b0088ca9cb3f3b0fb062be8bfdb;hp=8984214d994f305d35a7fd8cccbdff80ff496cf3;hpb=97a251544371dbe9073a2c77df8b936176b916dc;p=flightgear.git diff --git a/src/Airports/apt_loader.cxx b/src/Airports/apt_loader.cxx index 8984214d9..8bb9924e6 100644 --- a/src/Airports/apt_loader.cxx +++ b/src/Airports/apt_loader.cxx @@ -39,17 +39,14 @@ #include #include #include +#include #include #include "simple.hxx" #include "runways.hxx" #include "pavement.hxx" -#if ENABLE_ATCDCL -# include -#else - #include -#endif +#include #include @@ -237,7 +234,6 @@ private: SGGeod pos(SGGeod::fromDegFt(lon, lat, last_apt_elev)); FGAirport* apt = new FGAirport(last_apt_id, pos, tower, last_apt_name, false, fptypeFromRobinType(atoi(last_apt_type.c_str()))); - apt->setRunwaysAndTaxiways(runways, taxiways, pavements); } @@ -486,7 +482,6 @@ private: // 50 11770 AWOS 3 // This code parallels code found in "operator>>" in ATC.hxx; // FIXME: unify the code. -#if ENABLE_ATCDCL ATCData a; a.geod = SGGeod::fromDegFt(rwy_lon_accum / (double)rwy_count, rwy_lat_accum / (double)rwy_count, last_apt_elev); @@ -505,8 +500,6 @@ private: SGBucket bucket(a.geod); int bucknum = bucket.gen_index(); comm_list->commlist_bck[bucknum].push_back(a); -#else -#endif #if 0 SG_LOG( SG_GENERAL, SG_ALERT, "Loaded ATIS/AWOS for airport: " << a.ident