Fix errors with missing runways at KORD
This likely relates to stale runway preferences data.
This commit is contained in:
parent
21629402ce
commit
fa76d5b158
2 changed files with 12 additions and 8 deletions
|
@ -189,6 +189,9 @@ bool FGAirport::hasHelipadWithIdent(const std::string& aIdent) const
|
|||
//------------------------------------------------------------------------------
|
||||
FGRunwayRef FGAirport::getRunwayByIdent(const std::string& aIdent) const
|
||||
{
|
||||
if (aIdent.empty())
|
||||
return {};
|
||||
|
||||
loadRunways();
|
||||
for (auto rwy : mRunways) {
|
||||
if (rwy->ident() == aIdent) {
|
||||
|
|
|
@ -796,10 +796,11 @@ bool FGAirportDynamics::innerGetActiveRunway(const string & trafficType,
|
|||
|
||||
if (action == 2) // landing
|
||||
{
|
||||
int nr = landing.size();
|
||||
if (nr) {
|
||||
if (!landing.empty()) {
|
||||
runway = chooseRwyByHeading(landing, heading);
|
||||
} else { //fallback
|
||||
}
|
||||
|
||||
if (runway.empty()) { //fallback
|
||||
runway = chooseRunwayFallback();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue