mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Ref T111, handle SELCAL in simulator context (fix, was missing so far)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7cc723c7c3
commit
71fa0fc7b8
@@ -524,6 +524,15 @@ namespace BlackCore
|
||||
m_simulatorPlugin.second->updateOwnSimulatorCockpit(ownAircraft, originator);
|
||||
}
|
||||
|
||||
void CContextSimulator::ps_updateSimulatorSelcalFromContext(const CSelcal &selcal, const CIdentifier &originator)
|
||||
{
|
||||
if (!isSimulatorSimulating()) { return; }
|
||||
if (originator.getName().isEmpty() || originator == IContextSimulator::InterfaceName()) { return; }
|
||||
|
||||
// update
|
||||
m_simulatorPlugin.second->updateOwnSimulatorSelcal(selcal, originator);
|
||||
}
|
||||
|
||||
void CContextSimulator::ps_networkRequestedNewAircraft(const CCallsign &callsign, const QString &aircraftIcao, const QString &airlineIcao, const QString &livery)
|
||||
{
|
||||
if (m_networkSessionId.isEmpty()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user