refs #484 Revise XBus airports-in-range code using CNavDataReferenceList.

This commit is contained in:
Mathew Sutcliffe
2015-10-19 23:31:25 +01:00
parent ca18f98c43
commit 777a371569
3 changed files with 7 additions and 21 deletions

View File

@@ -332,11 +332,8 @@ namespace BlackSimPlugin
BlackMisc::Aviation::CAirportList CSimulatorXPlane::getAirportsInRange() const
{
auto copy = m_airportsInRange;
//! \todo XP driver: Check if units match, xPlaneData has now hints what the values are
copy.sortByRange(CCoordinateGeodetic(m_xplaneData.latitude, m_xplaneData.longitude, 0), true);
copy.truncate(20);
return copy;
return m_airportsInRange;
}
bool CSimulatorXPlane::setTimeSynchronization(bool enable, const BlackMisc::PhysicalQuantities::CTime &offset)