mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Ref T180, interpolator provides default situation on its own, no need to check
This commit is contained in:
@@ -105,11 +105,7 @@ namespace BlackSimPlugin
|
|||||||
const CInterpolationHints &hints, CInterpolationStatus &status) const
|
const CInterpolationHints &hints, CInterpolationStatus &status) const
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_interpolator);
|
Q_ASSERT(m_interpolator);
|
||||||
const CAircraftSituation s = m_interpolator->getInterpolatedSituation(currentTimeSinceEpoc, setup, hints, status);
|
return m_interpolator->getInterpolatedSituation(currentTimeSinceEpoc, setup, hints, status);
|
||||||
|
|
||||||
// return original position if interpolation fails for some reason
|
|
||||||
const bool valid = status.allTrue() && !s.isPositionNull() && !s.isGeodeticHeightNull();
|
|
||||||
return valid ? m_aircraft.getSituation() : s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSimConnectObjects::setSimConnectObjectIdForRequestId(DWORD requestId, DWORD objectId, bool resetSentParts)
|
bool CSimConnectObjects::setSimConnectObjectIdForRequestId(DWORD requestId, DWORD objectId, bool resetSentParts)
|
||||||
|
|||||||
Reference in New Issue
Block a user