mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Propagate FacilityType and LoginMode to value objects
This commit is contained in:
@@ -1451,7 +1451,7 @@ namespace BlackCore
|
||||
if (!sApp || sApp->isShuttingDown() || !sApp->getIContextNetwork()) { return false; }
|
||||
|
||||
// It is only relevant if we are logged in as observer
|
||||
if (sApp->getIContextNetwork()->getLoginMode() != INetwork::LoginAsObserver) { return false; }
|
||||
if (sApp->getIContextNetwork()->getLoginMode() != BlackMisc::Network::CLoginMode::Observer) { return false; }
|
||||
|
||||
const CCallsign ownCallsign = this->getOwnAircraft().getCallsign();
|
||||
return ownCallsign.isMaybeCopilotCallsign(callsign);
|
||||
|
||||
Reference in New Issue
Block a user