mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
Filter other pilots ghost aircraft when flying in shared cockpit mode
When flying in shared cockpit mode, both pilots log into the network. One as pilot to be visible to ATC and other pilots. The other one as observer. For the observing user, the pilots aircraft needs to be filtered. Filter algorithm is using the same schema as vPilot does. ref T427
This commit is contained in:
committed by
Klaus Basan
parent
420fc40fb2
commit
ee8af9f4c6
@@ -270,6 +270,8 @@ namespace BlackCore
|
||||
const QString &airlineIcao, const QString &liveryString, const QString &modelString,
|
||||
BlackMisc::Simulation::CAircraftModel::ModelType type, BlackMisc::CStatusMessageList *log);
|
||||
|
||||
bool isCopilotAircraft(const BlackMisc::Aviation::CCallsign &callsign) const;
|
||||
|
||||
//! Create aircraft in range, this is the only place where a new aircraft should be added
|
||||
void onAircraftUpdateReceived(const BlackMisc::Aviation::CAircraftSituation &situation, const BlackMisc::Aviation::CTransponder &transponder);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user