mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
refs #852, #863, #896 Fixed time offset of parts from commit:74e93525 that was broken by commit:7a71d652.
This commit is contained in:
@@ -249,6 +249,10 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
m_aircraftParts.push_front(parts);
|
m_aircraftParts.push_front(parts);
|
||||||
IRemoteAircraftProvider::removeOutdatedParts(m_aircraftParts);
|
IRemoteAircraftProvider::removeOutdatedParts(m_aircraftParts);
|
||||||
|
|
||||||
|
qint64 offset = 6000; //! \fixme copied from CNetworkVatlib::c_positionTimeOffsetMsec
|
||||||
|
if (!m_aircraftSituations.isEmpty()) { offset = m_aircraftSituations.front().getTimeOffsetMs(); }
|
||||||
|
m_aircraftParts.front().setTimeOffsetMs(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
|
|||||||
Reference in New Issue
Block a user