mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
[FSD] Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
123387f1a7
commit
911b23e29d
@@ -295,9 +295,8 @@ namespace BlackCore
|
||||
|
||||
CAtcStation CAirspaceMonitor::getAtcStationForComUnit(const CComSystem &comSystem) const
|
||||
{
|
||||
CAtcStation station;
|
||||
CAtcStationList stations = m_atcStationsOnline.findIfComUnitTunedInChannelSpacing(comSystem);
|
||||
if (stations.isEmpty()) { return station; }
|
||||
if (stations.isEmpty()) { return {}; }
|
||||
stations.sortByDistanceToReferencePosition();
|
||||
return stations.front();
|
||||
}
|
||||
@@ -431,7 +430,7 @@ namespace BlackCore
|
||||
{
|
||||
const CSimulatedAircraftList aircraft = this->getAircraftInRange();
|
||||
CRemoteAircraftProvider::removeAllAircraft();
|
||||
this->asyncAddNewAircraftInRange(aircraft, true);
|
||||
this->asyncReInitializeAllAircraft(aircraft, true);
|
||||
return aircraft.size();
|
||||
}
|
||||
|
||||
@@ -1027,7 +1026,7 @@ namespace BlackCore
|
||||
return added;
|
||||
}
|
||||
|
||||
void CAirspaceMonitor::asyncAddNewAircraftInRange(const CSimulatedAircraftList &aircraft, bool readyForModelMatching)
|
||||
void CAirspaceMonitor::asyncReInitializeAllAircraft(const CSimulatedAircraftList &aircraft, bool readyForModelMatching)
|
||||
{
|
||||
if (aircraft.isEmpty()) { return; }
|
||||
if (!sApp || sApp->isShuttingDown()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user