]> git.mxchange.org Git - flightgear.git/commitdiff
Helipads don't have a number per end, so don't attempt to return a (broken) reverse...
authordaveluff <daveluff>
Sun, 12 Mar 2006 21:10:34 +0000 (21:10 +0000)
committerdaveluff <daveluff>
Sun, 12 Mar 2006 21:10:34 +0000 (21:10 +0000)
src/Airports/runways.cxx

index 8680818ff62e8aab8b45935c09d0785f012dad12..cf6550aea02001610430ea109521ed584314a630 100644 (file)
@@ -96,6 +96,11 @@ void FGRunwayList::add( const string& id, const string& rwy_no,
 static string GetReverseRunwayNo(string& rwyno) {      
     // cout << "Original rwyno = " << rwyNo << '\n';
     
+    // Helipads don't have a seperate number per end
+    if(rwyno.size() && (rwyno[0] == 'H' || rwyno[0] == 'h')) {
+       return rwyno;
+    }
+    
     // standardize input number
     string tmp = rwyno.substr(1, 1);
     if (( tmp == "L" || tmp == "R" || tmp == "C" ) || (rwyno.size() == 1)) {