mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +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))
|
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
|
// here we know we have a valid model and CG
|
||||||
m_autoPublishing.insert(modelString, cg);
|
m_autoPublishing.insert(modelString, cg);
|
||||||
|
|||||||
@@ -807,7 +807,9 @@ namespace BlackSimPlugin
|
|||||||
const CLength cg(remoteAircraftModel.cgToGroundFt, CLengthUnit::ft());
|
const CLength cg(remoteAircraftModel.cgToGroundFt, CLengthUnit::ft());
|
||||||
so.setAircraftCG(cg);
|
so.setAircraftCG(cg);
|
||||||
so.setAircraftModelString(modelString);
|
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
|
this->updateCGAndModelString(cs, cg, modelString); // remote aircraft provider
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user