Ref T298, improved/fixed re-matching (match all aircraft again)

- reset to network model (otherwise we match "matched model" -> "matched model")
- renamed/added functions doMtachingAgain/doMatchinsAgain in contexts
This commit is contained in:
Klaus Basan
2018-08-24 16:58:03 +02:00
parent 1b72333b05
commit cb351aca1a
8 changed files with 59 additions and 10 deletions

View File

@@ -491,6 +491,14 @@ namespace BlackMisc
m_models[NetworkModel] = model;
}
bool CSimulatedAircraft::resetToNetworkModel()
{
Q_ASSERT_X(m_models.size() == 2, Q_FUNC_INFO, "Wrong model size");
const CAircraftModel nwModel = m_models[NetworkModel];
m_models[CurrentModel] = nwModel;
return true;
}
bool CSimulatedAircraft::setCG(const CLength &cg)
{
if (cg.isNull()) { return false; }