mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Ref T681, fixed handling of CG from DB
* consider settings * remember DB CG data correctly
This commit is contained in:
@@ -864,7 +864,11 @@ namespace BlackCore
|
||||
const CLength cgOvr = this->overriddenCGorDefault(simulatorCG, modelString);
|
||||
if (!cgOvr.isNull() && !this->hasSameSimulatorCG(cgOvr, callsign))
|
||||
{
|
||||
this->insertCG(cgOvr, modelString, callsign); // per model string and CG
|
||||
const CSimulatorSettings::CGSource source = this->getSimulatorSettings().getSimulatorSettings().getCGSource();
|
||||
if (source != CSimulatorSettings::CGFromDBOnly)
|
||||
{
|
||||
this->insertCG(cgOvr, modelString, callsign); // per model string and CG
|
||||
}
|
||||
|
||||
// here we know we have a valid model and CG did change
|
||||
const CSimulatorInfo sim = this->getSimulatorInfo();
|
||||
|
||||
Reference in New Issue
Block a user