Use "fixed "gear down" if on ground.

Reason: Some sims do send incorrect gear down.

Follow up of T778
This commit is contained in:
Klaus Basan
2020-04-15 20:15:51 +02:00
committed by Mat Sutcliffe
parent df69ef47a0
commit 4e45249142
5 changed files with 12 additions and 3 deletions

View File

@@ -315,6 +315,11 @@ namespace BlackMisc
m_lights.setAllOff();
}
bool CAircraftParts::isFixedGearDown() const
{
return this->isGearDown() || this->isOnGround();
}
CAircraftEngine CAircraftParts::getEngine(int number) const
{
return m_engines.getEngine(number);

View File

@@ -101,6 +101,10 @@ namespace BlackMisc
//! Is gear down?
bool isGearDown() const { return m_gearDown; }
//! Is fixed gear down?
//! \remark using also other attributes to decide if gear is down
bool isFixedGearDown() const;
//! Set gear down
void setGearDown(bool down) { m_gearDown = down; }