Ref T681, use simulator or DB CG as in settings

This commit is contained in:
Klaus Basan
2019-06-11 00:37:45 +02:00
committed by Mat Sutcliffe
parent 6d490e9a49
commit 017e9402fd
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,8 @@ namespace BlackMisc
template<typename Derived>
CLength CInterpolator<Derived>::getAndFetchModelCG()
{
const CLength cg = this->getSimulatorCG(m_callsign); // simulation environment
const CLength cgDB = this->getRemoteAircraftProvider() ? this->getRemoteAircraftProvider()->getCGFromDB(m_callsign) : CLength::null();
const CLength cg = this->getSimulatorOrDbCG(m_callsign, cgDB); // simulation environment
m_model.setCG(cg);
m_model.setCallsign(m_callsign);
return cg;