mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
[FSD] Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
45c44eb0bf
commit
325c869413
@@ -1156,7 +1156,6 @@ namespace BlackCore
|
|||||||
if (clientResponse.m_queryType == ClientQueryType::IsValidATC)
|
if (clientResponse.m_queryType == ClientQueryType::IsValidATC)
|
||||||
{
|
{
|
||||||
emit validAtcResponseReceived(responseData2, responseData1 == u"Y");
|
emit validAtcResponseReceived(responseData2, responseData1 == u"Y");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::Capabilities)
|
else if (clientResponse.m_queryType == ClientQueryType::Capabilities)
|
||||||
{
|
{
|
||||||
@@ -1184,7 +1183,6 @@ namespace BlackCore
|
|||||||
if (capabilities & Capabilities::AircraftConfig) { caps |= CClient::FsdWithAircraftConfig; }
|
if (capabilities & Capabilities::AircraftConfig) { caps |= CClient::FsdWithAircraftConfig; }
|
||||||
|
|
||||||
emit capabilityResponseReceived(clientResponse.sender(), caps);
|
emit capabilityResponseReceived(clientResponse.sender(), caps);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::Com1Freq)
|
else if (clientResponse.m_queryType == ClientQueryType::Com1Freq)
|
||||||
{
|
{
|
||||||
@@ -1195,42 +1193,34 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
// The response also includes sector name and pilot rating, but we ignore them here.
|
// The response also includes sector name and pilot rating, but we ignore them here.
|
||||||
emit realNameResponseReceived(clientResponse.sender(), responseData1);
|
emit realNameResponseReceived(clientResponse.sender(), responseData1);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::Server)
|
else if (clientResponse.m_queryType == ClientQueryType::Server)
|
||||||
{
|
{
|
||||||
emit serverResponseReceived(clientResponse.sender(), responseData1);
|
emit serverResponseReceived(clientResponse.sender(), responseData1);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::ATIS)
|
else if (clientResponse.m_queryType == ClientQueryType::ATIS)
|
||||||
{
|
{
|
||||||
if (responseData1.isEmpty())
|
if (responseData1.isEmpty())
|
||||||
{
|
{
|
||||||
// networkLog(vatSeverityDebug, "VatFsdClient::handleClientQueryReponse", "ATIS line type cannot be empty!");
|
// networkLog(vatSeverityDebug, "VatFsdClient::handleClientQueryReponse", "ATIS line type cannot be empty!");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
updateAtisMap(clientResponse.sender(), fromQString<AtisLineType>(responseData1), responseData2);
|
updateAtisMap(clientResponse.sender(), fromQString<AtisLineType>(responseData1), responseData2);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::PublicIP)
|
else if (clientResponse.m_queryType == ClientQueryType::PublicIP)
|
||||||
{
|
{
|
||||||
// To be implemented if needed
|
// To be implemented if needed
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::INF)
|
else if (clientResponse.m_queryType == ClientQueryType::INF)
|
||||||
{
|
{
|
||||||
// To be implemented if needed
|
// To be implemented if needed
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::FP)
|
else if (clientResponse.m_queryType == ClientQueryType::FP)
|
||||||
{
|
{
|
||||||
// FP is sent back as a $FP answer from the server and never as part of a client response.
|
// FP is sent back as a $FP answer from the server and never as part of a client response.
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::AircraftConfig)
|
else if (clientResponse.m_queryType == ClientQueryType::AircraftConfig)
|
||||||
{
|
{
|
||||||
// Currently not existing.
|
// Currently not existing.
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user