mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +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
|
||||
{
|
||||
Q_ASSERT(m_interpolator);
|
||||
const CAircraftSituation s = 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;
|
||||
return m_interpolator->getInterpolatedSituation(currentTimeSinceEpoc, setup, hints, status);
|
||||
}
|
||||
|
||||
bool CSimConnectObjects::setSimConnectObjectIdForRequestId(DWORD requestId, DWORD objectId, bool resetSentParts)
|
||||
|
||||
Reference in New Issue
Block a user