mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Ref T773, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
8e89488bae
commit
fe1e976093
@@ -1429,7 +1429,7 @@ namespace BlackCore
|
|||||||
fromNonMoving = true;
|
fromNonMoving = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// do we have a elevation yet?
|
// do we have an elevation yet?
|
||||||
if (!averagePlane.isNull())
|
if (!averagePlane.isNull())
|
||||||
{
|
{
|
||||||
correctedSituation.setGroundElevation(averagePlane, CAircraftSituation::Average);
|
correctedSituation.setGroundElevation(averagePlane, CAircraftSituation::Average);
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ namespace BlackCore
|
|||||||
void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign)
|
void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign)
|
||||||
{
|
{
|
||||||
if (this->isShuttingDown()) { return; }
|
if (this->isShuttingDown()) { return; }
|
||||||
if (plane.isNull()) { return; }
|
if (plane.isNull()) { return; } // this happens if requested for a coordinate where scenery is not available-
|
||||||
|
|
||||||
// Update in remote aircraft for given callsign
|
// Update in remote aircraft for given callsign
|
||||||
bool updatedForOnGroundPosition = false;
|
bool updatedForOnGroundPosition = false;
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ namespace BlackMisc
|
|||||||
// Joe McArthur -> valid
|
// Joe McArthur -> valid
|
||||||
if (uc > 1 && lc > 2 && lc > uc) { return newRealName; } // mixed case name, no need to beautify
|
if (uc > 1 && lc > 2 && lc > uc) { return newRealName; } // mixed case name, no need to beautify
|
||||||
if (ch.isLower()) { lc++; continue; }
|
if (ch.isLower()) { lc++; continue; }
|
||||||
if (ch.isUpper()) { uc++; continue;}
|
if (ch.isUpper()) { uc++; continue; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// simple title case beautifying
|
// simple title case beautifying
|
||||||
|
|||||||
@@ -133,10 +133,10 @@ namespace BlackMisc
|
|||||||
//! TCAS functionality?
|
//! TCAS functionality?
|
||||||
void setTcasEnabled(bool tcas) { m_tcasEnabled = tcas; }
|
void setTcasEnabled(bool tcas) { m_tcasEnabled = tcas; }
|
||||||
|
|
||||||
//! Terrain probe to establish ground elevation?
|
//! Terrain probe to query ground elevation enabled?
|
||||||
bool isTerrainProbeEnabled() const { return m_terrainProbeEnabled; }
|
bool isTerrainProbeEnabled() const { return m_terrainProbeEnabled; }
|
||||||
|
|
||||||
//! Terrain probe to establish ground elevation?
|
//! Terrain probe to query ground elevation enabled?
|
||||||
void setTerrainProbeEnabled(bool enabled) { m_terrainProbeEnabled = enabled; }
|
void setTerrainProbeEnabled(bool enabled) { m_terrainProbeEnabled = enabled; }
|
||||||
|
|
||||||
//! Load and parse config file
|
//! Load and parse config file
|
||||||
|
|||||||
@@ -1042,8 +1042,8 @@ namespace BlackSimPlugin
|
|||||||
if (CBuildConfig::isLocalDeveloperDebugBuild())
|
if (CBuildConfig::isLocalDeveloperDebugBuild())
|
||||||
{
|
{
|
||||||
Q_ASSERT_X(elevationsMeters.size() == size, Q_FUNC_INFO, "Wrong elevations");
|
Q_ASSERT_X(elevationsMeters.size() == size, Q_FUNC_INFO, "Wrong elevations");
|
||||||
Q_ASSERT_X(latitudesDeg.size() == size, Q_FUNC_INFO, "Wrong latitudesDeg");
|
Q_ASSERT_X(latitudesDeg.size() == size, Q_FUNC_INFO, "Wrong latitudesDeg");
|
||||||
Q_ASSERT_X(longitudesDeg.size() == size, Q_FUNC_INFO, "Wrong longitudesDeg");
|
Q_ASSERT_X(longitudesDeg.size() == size, Q_FUNC_INFO, "Wrong longitudesDeg");
|
||||||
Q_ASSERT_X(verticalOffsetsMeters.size() == size, Q_FUNC_INFO, "Wrong CG");
|
Q_ASSERT_X(verticalOffsetsMeters.size() == size, Q_FUNC_INFO, "Wrong CG");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user