mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T554, FSX/P3D use "rememberElevationAndCG" for CG, so also auto publish info is written
This commit is contained in:
committed by
Mat Sutcliffe
parent
4ce5a0de61
commit
daf39a9835
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user