Ref T773, style (simulator)

This commit is contained in:
Klaus Basan
2020-02-28 22:38:35 +01:00
committed by Mat Sutcliffe
parent acd5ee5a3c
commit a5f4705bb1
2 changed files with 2 additions and 3 deletions

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; } // this happens if requested for a coordinate where scenery is not available-
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

@@ -821,7 +821,6 @@ namespace BlackSimPlugin
void CSimulatorFlightgear::onRemoteAircraftAddingFailed(const QString &callsign)
{
BLACK_VERIFY_X(!callsign.isEmpty(), Q_FUNC_INFO, "Need callsign");
if (callsign.isEmpty()) { return; }
const CCallsign cs(callsign);
@@ -838,7 +837,7 @@ namespace BlackSimPlugin
}
const bool wasPending = (m_addingInProgressAircraft.remove(cs) > 0);
Q_UNUSED(wasPending);
Q_UNUSED(wasPending)
if (failedRemoteAircraft.hasCallsign() && !m_aircraftAddedFailed.containsCallsign(cs))
{