mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #246, own context for aircraft
This commit is contained in:
@@ -433,7 +433,7 @@ namespace BlackCore
|
||||
|
||||
if (this->m_contextSimulator && this->m_contextSimulator->usingLocalObjects() && this->m_contextNetwork)
|
||||
{
|
||||
// only connect if simulator running locally, no roundtrips
|
||||
// only connect if simulator running locally, no round trips
|
||||
if (this->getCContextSimulator()->m_simulator)
|
||||
{
|
||||
c = connect(this->m_contextNetwork, &IContextNetwork::changedAircraftSituation,
|
||||
@@ -441,6 +441,14 @@ namespace BlackCore
|
||||
Q_ASSERT(c);
|
||||
}
|
||||
}
|
||||
|
||||
if (this->m_contextNetwork && this->m_contextOwnAircraft && this->m_contextNetwork->usingLocalObjects() && this->m_contextOwnAircraft->usingLocalObjects())
|
||||
{
|
||||
// only where network and(!) own aircraft run locally
|
||||
c = this->connect(this->m_contextNetwork, &IContextNetwork::changedAtcStationOnlineConnectionStatus,
|
||||
this->getCContextOwnAircraft(), &CContextOwnAircraft::changedAtcStationOnlineConnectionStatus);
|
||||
Q_ASSERT(c);
|
||||
}
|
||||
}
|
||||
|
||||
void CRuntime::gracefulShutdown()
|
||||
|
||||
Reference in New Issue
Block a user