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