mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refs #895, CPartsStatus(bool supportsParts)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2eef9288b9
commit
7427847bb4
@@ -168,8 +168,14 @@ namespace BlackMisc
|
|||||||
//! Reset to default values
|
//! Reset to default values
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
|
//! Ctor
|
||||||
|
CPartsStatus() {}
|
||||||
|
|
||||||
|
//! Ctor
|
||||||
|
CPartsStatus(bool supportsParts) : m_supportsParts(supportsParts) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_supportsParts = false; //!< supports parts for given callsign
|
bool m_supportsParts = false; //!< supports parts for given callsign
|
||||||
};
|
};
|
||||||
|
|
||||||
//! \cond PRIVATE
|
//! \cond PRIVATE
|
||||||
|
|||||||
@@ -900,10 +900,8 @@ namespace BlackSimPlugin
|
|||||||
// fetch parts, as they are needed for ground interpolation
|
// fetch parts, as they are needed for ground interpolation
|
||||||
const bool useAircraftParts = enableAircraftParts && aircraftWithParts.contains(callsign);
|
const bool useAircraftParts = enableAircraftParts && aircraftWithParts.contains(callsign);
|
||||||
const bool logInterpolationAndParts = callsignsToLog.contains(callsign);
|
const bool logInterpolationAndParts = callsignsToLog.contains(callsign);
|
||||||
CPartsStatus partsStatus;
|
|
||||||
partsStatus.setSupportsParts(useAircraftParts);
|
|
||||||
|
|
||||||
const CInterpolationAndRenderingSetup setup(getInterpolationAndRenderingSetup());
|
const CInterpolationAndRenderingSetup setup(getInterpolationAndRenderingSetup());
|
||||||
|
CPartsStatus partsStatus(useAircraftParts);
|
||||||
const CAircraftParts parts = useAircraftParts ? simObj.getInterpolator()->getInterpolatedParts(-1, setup, partsStatus, logInterpolationAndParts) : CAircraftParts();
|
const CAircraftParts parts = useAircraftParts ? simObj.getInterpolator()->getInterpolatedParts(-1, setup, partsStatus, logInterpolationAndParts) : CAircraftParts();
|
||||||
|
|
||||||
// get interpolated situation
|
// get interpolated situation
|
||||||
|
|||||||
Reference in New Issue
Block a user