mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
This commit is contained in:
@@ -45,14 +45,23 @@ namespace BlackCore
|
|||||||
aircraft.setTransponder(transponder);
|
aircraft.setTransponder(transponder);
|
||||||
aircraft.calculcateDistanceToPlane(this->m_ownAircraft.getPosition());
|
aircraft.calculcateDistanceToPlane(this->m_ownAircraft.getPosition());
|
||||||
this->m_vatsimDataFileReader->getAircrafts().updateFromVatsimDataFileAircraft(aircraft);
|
this->m_vatsimDataFileReader->getAircrafts().updateFromVatsimDataFileAircraft(aircraft);
|
||||||
|
|
||||||
this->m_aircraftsInRange.push_back(aircraft);
|
this->m_aircraftsInRange.push_back(aircraft);
|
||||||
|
|
||||||
|
// and new client, there is a chance it has been created by
|
||||||
|
// custom package first
|
||||||
|
if (!this->m_otherClients.contains(&CClient::getCallsign, callsign))
|
||||||
|
this->m_otherClients.push_back(CClient(callsign)); // initial, will be filled by data later
|
||||||
|
|
||||||
if (this->isConnected())
|
if (this->isConnected())
|
||||||
{
|
{
|
||||||
// only emit if still connected
|
// only if still connected
|
||||||
emit this->m_network->sendFrequencyQuery(callsign);
|
this->m_network->sendFrequencyQuery(callsign);
|
||||||
emit this->m_network->sendRealNameQuery(callsign);
|
this->m_network->sendRealNameQuery(callsign);
|
||||||
emit this->m_network->sendIcaoCodesQuery(callsign);
|
this->m_network->sendIcaoCodesQuery(callsign);
|
||||||
|
this->m_network->sendCapabilitiesQuery(callsign);
|
||||||
|
this->m_network->sendServerQuery(callsign);
|
||||||
|
this->sendFsipirCustomPackage(callsign);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user