mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15: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;
|
||||
}
|
||||
|
||||
// do we have a elevation yet?
|
||||
// do we have an elevation yet?
|
||||
if (!averagePlane.isNull())
|
||||
{
|
||||
correctedSituation.setGroundElevation(averagePlane, CAircraftSituation::Average);
|
||||
|
||||
@@ -363,7 +363,7 @@ namespace BlackCore
|
||||
void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign)
|
||||
{
|
||||
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
|
||||
bool updatedForOnGroundPosition = false;
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace BlackMisc
|
||||
// Joe McArthur -> valid
|
||||
if (uc > 1 && lc > 2 && lc > uc) { return newRealName; } // mixed case name, no need to beautify
|
||||
if (ch.isLower()) { lc++; continue; }
|
||||
if (ch.isUpper()) { uc++; continue;}
|
||||
if (ch.isUpper()) { uc++; continue; }
|
||||
}
|
||||
|
||||
// simple title case beautifying
|
||||
|
||||
@@ -133,10 +133,10 @@ namespace BlackMisc
|
||||
//! TCAS functionality?
|
||||
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; }
|
||||
|
||||
//! Terrain probe to establish ground elevation?
|
||||
//! Terrain probe to query ground elevation enabled?
|
||||
void setTerrainProbeEnabled(bool enabled) { m_terrainProbeEnabled = enabled; }
|
||||
|
||||
//! Load and parse config file
|
||||
|
||||
@@ -1042,8 +1042,8 @@ namespace BlackSimPlugin
|
||||
if (CBuildConfig::isLocalDeveloperDebugBuild())
|
||||
{
|
||||
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(longitudesDeg.size() == size, Q_FUNC_INFO, "Wrong longitudesDeg");
|
||||
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(verticalOffsetsMeters.size() == size, Q_FUNC_INFO, "Wrong CG");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user