Helipads don't have a number per end, so don't attempt to return a (broken) reverse rwy number
This commit is contained in:
parent
f8eb3d4309
commit
771fbd680a
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ void FGRunwayList::add( const string& id, const string& rwy_no,
|
||||||
static string GetReverseRunwayNo(string& rwyno) {
|
static string GetReverseRunwayNo(string& rwyno) {
|
||||||
// cout << "Original rwyno = " << rwyNo << '\n';
|
// 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
|
// standardize input number
|
||||||
string tmp = rwyno.substr(1, 1);
|
string tmp = rwyno.substr(1, 1);
|
||||||
if (( tmp == "L" || tmp == "R" || tmp == "C" ) || (rwyno.size() == 1)) {
|
if (( tmp == "L" || tmp == "R" || tmp == "C" ) || (rwyno.size() == 1)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue