mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
fix: pending aircrafts works
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
|
||||
// clang-format off
|
||||
#include <Windows.h>
|
||||
#include <SimConnect.h>
|
||||
//#include "../third_party/externals/common/include/simconnect/P3D-v4/SimConnect.h"
|
||||
//#include <SimConnect.h>
|
||||
#include "../third_party/externals/common/include/simconnect/P3D-v4/SimConnect.h"
|
||||
|
||||
// clang-format on
|
||||
|
||||
|
||||
@@ -1495,12 +1495,13 @@ namespace swift::simplugin::msfs2024common
|
||||
const CCallsignSet aircraftCallsignsInRange(this->getAircraftInRangeCallsigns());
|
||||
CCallsignSet toBeRemovedCallsigns;
|
||||
|
||||
for (const CSimConnectObject &pendingSimObj : std::as_const(m_addPendingAircraft))
|
||||
{
|
||||
SWIFT_VERIFY_X(pendingSimObj.hasCallsign(), Q_FUNC_INFO, "missing callsign");
|
||||
if (!pendingSimObj.hasCallsign()) { continue; }
|
||||
else { toBeRemovedCallsigns.push_back(pendingSimObj.getCallsign()); }
|
||||
}
|
||||
// TODO TZ this removed the pending aircraft from the list, even they are not added yet
|
||||
// for (const CSimConnectObject &pendingSimObj : std::as_const(m_addPendingAircraft))
|
||||
//{
|
||||
// SWIFT_VERIFY_X(pendingSimObj.hasCallsign(), Q_FUNC_INFO, "missing callsign");
|
||||
// if (!pendingSimObj.hasCallsign()) { continue; }
|
||||
// else { toBeRemovedCallsigns.push_back(pendingSimObj.getCallsign()); }
|
||||
//}
|
||||
|
||||
// no longer required to be added
|
||||
// TOTO TZ
|
||||
|
||||
Reference in New Issue
Block a user