mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Ref T384, get closest ATC stations online
This commit is contained in:
@@ -618,6 +618,14 @@ namespace BlackCore
|
||||
return stations;
|
||||
}
|
||||
|
||||
CAtcStationList CContextNetwork::getClosestAtcStationsOnline(int number) const
|
||||
{
|
||||
if (!this->getIContextOwnAircraft()) { return CAtcStationList(); }
|
||||
const CAircraftSituation ownSituation = this->getIContextOwnAircraft()->getOwnAircraftSituation();
|
||||
const CAtcStationList stations = m_airspace->getAtcStationsOnline().findClosest(number, ownSituation);
|
||||
return stations;
|
||||
}
|
||||
|
||||
CAtcStationList CContextNetwork::getAtcStationsBooked(bool recalculateDistance) const
|
||||
{
|
||||
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
|
||||
Reference in New Issue
Block a user