mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
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:
committed by
Mathew Sutcliffe
parent
518a0debb4
commit
d46318be5e
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user