mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T684, better detection of callsign type for ATC stations
* detection in "CCallsign::unifyCallsign" * force ATC callsign in nAtisReplyReceived
This commit is contained in:
committed by
Mat Sutcliffe
parent
5da74faad0
commit
f6d078de34
@@ -1389,8 +1389,9 @@ namespace BlackCore
|
||||
void CNetworkVatlib::onAtisReplyReceived(VatFsdClient *, const char *callsign, const VatControllerAtis *atis, void *cbvar)
|
||||
{
|
||||
auto *self = cbvar_cast(cbvar);
|
||||
emit self->atisVoiceRoomReplyReceived(self->fromFSD(callsign), self->fromFSD(atis->voiceRoom));
|
||||
emit self->atisLogoffTimeReplyReceived(self->fromFSD(callsign), self->fromFSD(atis->zuluLogoff));
|
||||
const CCallsign cs(self->fromFSD(callsign), CCallsign::Atc);
|
||||
emit self->atisVoiceRoomReplyReceived(cs, self->fromFSD(atis->voiceRoom));
|
||||
emit self->atisLogoffTimeReplyReceived(cs, self->fromFSD(atis->zuluLogoff));
|
||||
|
||||
CInformationMessage atisMessage;
|
||||
atisMessage.setType(CInformationMessage::ATIS);
|
||||
@@ -1413,7 +1414,7 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
emit self->atisReplyReceived(CCallsign(self->fromFSD(callsign), CCallsign::Atc), atisMessage);
|
||||
emit self->atisReplyReceived(cs, atisMessage);
|
||||
}
|
||||
|
||||
void CNetworkVatlib::onFlightPlanReceived(VatFsdClient *, const char *callsignChar, const VatFlightPlan *fp, void *cbvar)
|
||||
|
||||
Reference in New Issue
Block a user