mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #229 Do not send updates to FSX for removed objects
This commit is contained in:
@@ -501,7 +501,10 @@ namespace BlackSimPlugin
|
||||
foreach(CSimConnectObject simObj, m_simConnectObjects)
|
||||
{
|
||||
if (simObj.getInterpolator()->getTimeOfLastReceivedSituation().secsTo(QDateTime::currentDateTimeUtc()) > 15)
|
||||
{
|
||||
removeRemoteAircraft(simObj);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (simObj.getInterpolator()->hasEnoughAircraftSituations())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user