mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Continue to send CTraffic values if a plane is NOT found, do NOT return
This commit is contained in:
committed by
Mat Sutcliffe
parent
1409dae355
commit
f8c73c772a
@@ -401,10 +401,10 @@ namespace XSwiftBus
|
||||
for (size_t i = 0; i < callsigns.size(); i++)
|
||||
{
|
||||
auto planeIt = m_planesByCallsign.find(callsigns.at(i));
|
||||
if (planeIt == m_planesByCallsign.end()) { return; }
|
||||
if (planeIt == m_planesByCallsign.end()) { continue; }
|
||||
|
||||
Plane *plane = planeIt->second;
|
||||
if (!plane) { return; }
|
||||
if (!plane) { continue; }
|
||||
plane->position.lat = latitudesDeg.at(i);
|
||||
plane->position.lon = longitudesDeg.at(i);
|
||||
plane->position.elevation = altitudesFt.at(i);
|
||||
@@ -427,10 +427,10 @@ namespace XSwiftBus
|
||||
for (size_t i = 0; i < callsigns.size(); i++)
|
||||
{
|
||||
auto planeIt = m_planesByCallsign.find(callsigns.at(i));
|
||||
if (planeIt == m_planesByCallsign.end()) { return; }
|
||||
if (planeIt == m_planesByCallsign.end()) { continue; }
|
||||
|
||||
Plane *plane = planeIt->second;
|
||||
if (!plane) { return; }
|
||||
if (!plane) { continue; }
|
||||
|
||||
plane->hasSurfaces = true;
|
||||
plane->targetGearPosition = static_cast<float>(gears.at(i));
|
||||
@@ -466,10 +466,10 @@ namespace XSwiftBus
|
||||
for (size_t i = 0; i < callsigns.size(); i++)
|
||||
{
|
||||
auto planeIt = m_planesByCallsign.find(callsigns.at(i));
|
||||
if (planeIt == m_planesByCallsign.end()) { return; }
|
||||
if (planeIt == m_planesByCallsign.end()) { continue; }
|
||||
|
||||
Plane *plane = planeIt->second;
|
||||
if (!plane) { return; }
|
||||
if (!plane) { continue; }
|
||||
|
||||
plane->hasXpdr = true;
|
||||
plane->xpdr.code = codes.at(i);
|
||||
|
||||
Reference in New Issue
Block a user