mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +08:00
Style
This commit is contained in:
@@ -961,7 +961,7 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// values before updating
|
// values before updating (i.e. "storing") so the new situation is noty yet considered
|
||||||
const CAircraftSituationList oldSituations = this->remoteAircraftSituations(callsign);
|
const CAircraftSituationList oldSituations = this->remoteAircraftSituations(callsign);
|
||||||
const CAircraftSituationChangeList oldChanges = this->remoteAircraftSituationChanges(callsign);
|
const CAircraftSituationChangeList oldChanges = this->remoteAircraftSituationChanges(callsign);
|
||||||
if (oldSituations.size() > 1)
|
if (oldSituations.size() > 1)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
using namespace BlackConfig;
|
using namespace BlackConfig;
|
||||||
using namespace BlackMisc;
|
using namespace BlackMisc;
|
||||||
using namespace BlackMisc::Aviation;
|
using namespace BlackMisc::Aviation;
|
||||||
|
using namespace BlackMisc::Geo;
|
||||||
using namespace BlackMisc::Simulation;
|
using namespace BlackMisc::Simulation;
|
||||||
using namespace BlackMisc::PhysicalQuantities;
|
using namespace BlackMisc::PhysicalQuantities;
|
||||||
using namespace BlackMisc::Network;
|
using namespace BlackMisc::Network;
|
||||||
@@ -55,7 +56,7 @@ namespace BlackCore
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ISimulator::callbackReceivedRequestedElevation(const Geo::CElevationPlane &plane, const CCallsign &callsign)
|
void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign)
|
||||||
{
|
{
|
||||||
if (this->isShuttingDown()) { return; }
|
if (this->isShuttingDown()) { return; }
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
Q_ASSERT_X(m_tsAdjustedSortHint == CAircraftSituationList::AdjustedTimestampLatestFirst || this->isSortedAdjustedLatestFirstWithoutNullPositions(), Q_FUNC_INFO, "Need sorted situations without NULL positions");
|
Q_ASSERT_X(m_tsAdjustedSortHint == CAircraftSituationList::AdjustedTimestampLatestFirst || this->isSortedAdjustedLatestFirstWithoutNullPositions(), Q_FUNC_INFO, "Need sorted situations without NULL positions");
|
||||||
const CAircraftSituationChange simpleChange(*this, model.getCG(), model.isVtol(), true, false);
|
const CAircraftSituationChange simpleChange(*this, model.getCG(), model.isVtol(), true, false);
|
||||||
int c = 0;
|
int c = 0; // changed elevations
|
||||||
bool latest = true;
|
bool latest = true;
|
||||||
|
|
||||||
for (CAircraftSituation &s : *this)
|
for (CAircraftSituation &s : *this)
|
||||||
@@ -66,8 +66,8 @@ namespace BlackMisc
|
|||||||
const bool set = s.setGroundElevationChecked(elevationPlane, info);
|
const bool set = s.setGroundElevationChecked(elevationPlane, info);
|
||||||
if (set)
|
if (set)
|
||||||
{
|
{
|
||||||
// change is only valid for the latest situation
|
// simpleChange is only valid for the latest situation
|
||||||
// this will do nothing if not appropriate
|
// this will do nothing if not appropriate!
|
||||||
s.guessOnGround(latest ? simpleChange : CAircraftSituationChange::null(), model);
|
s.guessOnGround(latest ? simpleChange : CAircraftSituationChange::null(), model);
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
namespace Simulation
|
namespace Simulation
|
||||||
{
|
{
|
||||||
//! Value object encapsulating a list of distributors.
|
//! Value object encapsulating a list of setups.
|
||||||
class BLACKMISC_EXPORT CInterpolationSetupList :
|
class BLACKMISC_EXPORT CInterpolationSetupList :
|
||||||
public CSequence<CInterpolationAndRenderingSetupPerCallsign>,
|
public CSequence<CInterpolationAndRenderingSetupPerCallsign>,
|
||||||
public Aviation::ICallsignObjectList<CInterpolationAndRenderingSetupPerCallsign, CInterpolationSetupList>,
|
public Aviation::ICallsignObjectList<CInterpolationAndRenderingSetupPerCallsign, CInterpolationSetupList>,
|
||||||
|
|||||||
Reference in New Issue
Block a user