mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Ref T397, Ref T297 renamed parameter to "allowTestAltitudeOffset"
This commit is contained in:
@@ -251,7 +251,7 @@ namespace BlackMisc
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
CAircraftSituation CRemoteAircraftProvider::storeAircraftSituation(const CAircraftSituation &situation, bool allowTestOffset)
|
CAircraftSituation CRemoteAircraftProvider::storeAircraftSituation(const CAircraftSituation &situation, bool allowTestAltitudeOffset)
|
||||||
{
|
{
|
||||||
const CCallsign cs = situation.getCallsign();
|
const CCallsign cs = situation.getCallsign();
|
||||||
if (cs.isEmpty()) { return situation; }
|
if (cs.isEmpty()) { return situation; }
|
||||||
@@ -264,7 +264,7 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add altitude offset (for testing only)
|
// add altitude offset (for testing only)
|
||||||
CAircraftSituation situationCorrected(allowTestOffset ? this->addTestAltitudeOffsetToSituation(situation) : situation);
|
CAircraftSituation situationCorrected(allowTestAltitudeOffset ? this->addTestAltitudeOffsetToSituation(situation) : situation);
|
||||||
|
|
||||||
// CG, model
|
// CG, model
|
||||||
const CAircraftModel aircraftModel = this->getAircraftInRangeModelForCallsign(cs);
|
const CAircraftModel aircraftModel = this->getAircraftInRangeModelForCallsign(cs);
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ namespace BlackMisc
|
|||||||
//! Store an aircraft situation
|
//! Store an aircraft situation
|
||||||
//! \remark latest situations are kept first
|
//! \remark latest situations are kept first
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
virtual Aviation::CAircraftSituation storeAircraftSituation(const Aviation::CAircraftSituation &situation, bool allowTestOffset = true);
|
virtual Aviation::CAircraftSituation storeAircraftSituation(const Aviation::CAircraftSituation &situation, bool allowTestAltitudeOffset = true);
|
||||||
|
|
||||||
//! Store an aircraft part
|
//! Store an aircraft part
|
||||||
//! \remark latest parts are kept first
|
//! \remark latest parts are kept first
|
||||||
|
|||||||
Reference in New Issue
Block a user