mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Ref T709, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
447152bd13
commit
b539964906
@@ -54,14 +54,14 @@ namespace BlackSimPlugin
|
||||
return true;
|
||||
}
|
||||
|
||||
QStringList callsigns; //!< List of callsigns
|
||||
QStringList callsigns; //!< List of callsigns
|
||||
QList<double> latitudesDeg; //!< List of latitudes
|
||||
QList<double> longitudesDeg; //!< List of longitudes
|
||||
QList<double> altitudesFt; //!< List of altitudes
|
||||
QList<double> pitchesDeg; //!< List of pitches
|
||||
QList<double> rollsDeg; //!< List of rolls
|
||||
QList<double> headingsDeg; //!< List of headings
|
||||
QList<bool> onGrounds; //!< List of onGrounds
|
||||
QList<bool> onGrounds; //!< List of onGrounds
|
||||
};
|
||||
|
||||
//! Planes surfaces
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace XSwiftBus
|
||||
{
|
||||
if (strcmp(section, "planes") == 0 && strcmp(name, "max_full_count") == 0)
|
||||
{
|
||||
return s_settingsProvider->getSettings().getMaxPlanes();
|
||||
return CTraffic::s_settingsProvider->getSettings().getMaxPlanes(); // preferences
|
||||
}
|
||||
else if (strcmp(section, "debug") == 0 && strcmp(name, "allow_obj8_async_load") == 0)
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace XSwiftBus
|
||||
{
|
||||
if (strcmp(section, "planes") == 0 && strcmp(name, "full_distance") == 0)
|
||||
{
|
||||
return static_cast<float>(s_settingsProvider->getSettings().getMaxDrawDistanceNM());
|
||||
return static_cast<float>(CTraffic::s_settingsProvider->getSettings().getMaxDrawDistanceNM()); // preferences
|
||||
}
|
||||
return def;
|
||||
}
|
||||
@@ -906,7 +906,7 @@ namespace XSwiftBus
|
||||
// Now calculate where the camera should be positioned to be x
|
||||
// meters from the plane and pointing at the plane at the pitch and
|
||||
// heading we wanted above.
|
||||
const double distanceMeterM = static_cast<double>(std::max(10, s_settingsProvider->getSettings().getFollowAircraftDistanceM()));
|
||||
const double distanceMeterM = static_cast<double>(std::max(10, traffic->getSettings().getFollowAircraftDistanceM()));
|
||||
static const double PI = std::acos(-1);
|
||||
traffic->m_deltaCameraPosition.dx = -distanceMeterM * sin(traffic->m_deltaCameraPosition.heading * PI / 180.0);
|
||||
traffic->m_deltaCameraPosition.dz = distanceMeterM * cos(traffic->m_deltaCameraPosition.heading * PI / 180.0);
|
||||
|
||||
Reference in New Issue
Block a user