mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Remove aircrafts with time of latest update greater than 15 seks
refs #229
This commit is contained in:
committed by
Klaus Basan
parent
83776c5cc9
commit
8341ef54d2
@@ -388,6 +388,8 @@ namespace BlackSimPlugin
|
||||
{
|
||||
foreach(CSimConnectObject simObj, m_simConnectObjects)
|
||||
{
|
||||
if (simObj.getInterpolator()->getTimeOfLastReceivedSituation().secsTo(QDateTime::currentDateTimeUtc()) > 15)
|
||||
removeRemoteAircraft(simObj);
|
||||
|
||||
if (simObj.getInterpolator()->hasEnoughAircraftSituations())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user