mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
No updates to simulator when sim is not simulating
This commit is contained in:
@@ -210,6 +210,7 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
bool CSimulatorFsx::updateOwnSimulatorCockpit(const CAircraft &ownAircraft)
|
bool CSimulatorFsx::updateOwnSimulatorCockpit(const CAircraft &ownAircraft)
|
||||||
{
|
{
|
||||||
|
if (!this->isSimulating()) { return false; }
|
||||||
CComSystem newCom1 = ownAircraft.getCom1System();
|
CComSystem newCom1 = ownAircraft.getCom1System();
|
||||||
CComSystem newCom2 = ownAircraft.getCom2System();
|
CComSystem newCom2 = ownAircraft.getCom2System();
|
||||||
CTransponder newTransponder = ownAircraft.getTransponder();
|
CTransponder newTransponder = ownAircraft.getTransponder();
|
||||||
|
|||||||
Reference in New Issue
Block a user