1
0
Fork 0

Helipads don't have a number per end, so don't attempt to return a (broken) reverse rwy number

This commit is contained in:
daveluff 2006-03-12 21:10:34 +00:00
parent f8eb3d4309
commit 771fbd680a

View 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)) {