mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
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:
@@ -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; }
|
||||
|
||||
@@ -390,6 +390,9 @@ namespace BlackMisc
|
||||
//! Set network model
|
||||
void setNetworkModel(const CAircraftModel &model);
|
||||
|
||||
//! Reset to the newtork model
|
||||
bool resetToNetworkModel();
|
||||
|
||||
//! Set the center of gravity
|
||||
bool setCG(const PhysicalQuantities::CLength &cg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user