mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
Ref T773, style (simulator)
This commit is contained in:
committed by
Mat Sutcliffe
parent
acd5ee5a3c
commit
a5f4705bb1
@@ -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; } // 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
|
// Update in remote aircraft for given callsign
|
||||||
bool updatedForOnGroundPosition = false;
|
bool updatedForOnGroundPosition = false;
|
||||||
|
|||||||
@@ -821,7 +821,6 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
void CSimulatorFlightgear::onRemoteAircraftAddingFailed(const QString &callsign)
|
void CSimulatorFlightgear::onRemoteAircraftAddingFailed(const QString &callsign)
|
||||||
{
|
{
|
||||||
|
|
||||||
BLACK_VERIFY_X(!callsign.isEmpty(), Q_FUNC_INFO, "Need callsign");
|
BLACK_VERIFY_X(!callsign.isEmpty(), Q_FUNC_INFO, "Need callsign");
|
||||||
if (callsign.isEmpty()) { return; }
|
if (callsign.isEmpty()) { return; }
|
||||||
const CCallsign cs(callsign);
|
const CCallsign cs(callsign);
|
||||||
@@ -838,7 +837,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
const bool wasPending = (m_addingInProgressAircraft.remove(cs) > 0);
|
const bool wasPending = (m_addingInProgressAircraft.remove(cs) > 0);
|
||||||
Q_UNUSED(wasPending);
|
Q_UNUSED(wasPending)
|
||||||
|
|
||||||
if (failedRemoteAircraft.hasCallsign() && !m_aircraftAddedFailed.containsCallsign(cs))
|
if (failedRemoteAircraft.hasCallsign() && !m_aircraftAddedFailed.containsCallsign(cs))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user