]> git.mxchange.org Git - flightgear.git/commitdiff
apt_loader.cxx: 810 helipads are now treated as such internally
authorChristian Schmitt <chris@ilovelinux.de>
Sun, 24 Feb 2013 21:18:49 +0000 (22:18 +0100)
committerChristian Schmitt <chris@ilovelinux.de>
Sun, 24 Feb 2013 21:18:49 +0000 (22:18 +0100)
src/Airports/apt_loader.cxx

index f03a253fa04df49131a35543d9bde29946621cfe..fc4b0b1ed5ce607c626614f25f5c4a1ec3690ca1 100644 (file)
@@ -292,10 +292,13 @@ private:
 
     int surface_code = atoi( token[10].c_str() );
     SGGeod pos(SGGeod::fromDegFt(lon, lat, last_apt_elev));
-    
-    if (rwy_no[0] == 'x') {
-      cache->insertRunway(FGPositioned::TAXIWAY,rwy_no, pos, currentAirportID,
-                          heading, length, width, 0, 0, surface_code);
+
+    if (rwy_no[0] == 'x') {  // Taxiway
+      cache->insertRunway(FGPositioned::TAXIWAY, rwy_no, pos, currentAirportID,
+                          heading, length, width, 0.0, 0.0, surface_code);
+    } else if (rwy_no[0] == 'H') {  // Helipad
+      cache->insertRunway(FGPositioned::HELIPAD, rwy_no, pos, currentAirportID,
+                          heading, length, width, 0.0, 0.0, surface_code);
     } else {
       // (pair of) runways
       string rwy_displ_threshold = token[6];