Ref T554, FSX/P3D use "rememberElevationAndCG" for CG, so also auto publish info is written

This commit is contained in:
Klaus Basan
2019-03-15 13:56:53 +01:00
committed by Mat Sutcliffe
parent 4ce5a0de61
commit daf39a9835
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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
}