Use interpolated timestamp in order to get corresponding parts

So far the current timestamp was used to get the aircraft parts. This
caused aircraft jumps during takeoff and landing as soon as the on ground
flag changed.
This commit is contained in:
Roland Winklmeier
2016-12-16 20:51:13 +01:00
committed by Mathew Sutcliffe
parent 518a0debb4
commit d46318be5e

View File

@@ -832,7 +832,7 @@ namespace BlackSimPlugin
CAircraftPartsList parts;
if (enableAircraftParts && partsStatus.allTrue())
{
parts = this->m_interpolator->getPartsBeforeTime(callsign, currentTimestamp, partsStatus);
parts = this->m_interpolator->getPartsBeforeTime(callsign, interpolatedSituation.getMSecsSinceEpoch(), partsStatus);
}
if (interpolatorStatus.allTrue())