From daf39a9835c366d8d030222f19e8491721ab9507 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 15 Mar 2019 13:56:53 +0100 Subject: [PATCH] Ref T554, FSX/P3D use "rememberElevationAndCG" for CG, so also auto publish info is written --- src/blackcore/simulator.cpp | 2 +- src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blackcore/simulator.cpp b/src/blackcore/simulator.cpp index 2cba79561..94ced5ff3 100644 --- a/src/blackcore/simulator.cpp +++ b/src/blackcore/simulator.cpp @@ -800,7 +800,7 @@ namespace BlackCore } if (!cg.isNull() && !this->hasSameCG(cg, callsign)) { - this->insertCG(cg, modelString, callsign); + this->insertCG(cg, modelString, callsign); // per model string and CG // here we know we have a valid model and CG m_autoPublishing.insert(modelString, cg); diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp index 318363a57..b1077f248 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp @@ -807,7 +807,9 @@ namespace BlackSimPlugin const CLength cg(remoteAircraftModel.cgToGroundFt, CLengthUnit::ft()); so.setAircraftCG(cg); so.setAircraftModelString(modelString); - this->insertCG(cg, modelString, cs); // env. provider + + // update in 2 providers + this->rememberElevationAndCG(cs, modelString, CElevationPlane::null(), cg); // env. provider this->updateCGAndModelString(cs, cg, modelString); // remote aircraft provider }