Ref T773, style

This commit is contained in:
Klaus Basan
2020-02-24 14:36:41 +01:00
committed by Mat Sutcliffe
parent 8e89488bae
commit fe1e976093
5 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View 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");
}