refs #852 Added a floating-point onGround value in CAircraftParts.

This commit is contained in:
Mathew Sutcliffe
2017-01-09 02:21:03 +00:00
parent 3e70ab1207
commit c00a13a29c
2 changed files with 17 additions and 0 deletions

View File

@@ -133,5 +133,14 @@ namespace BlackMisc
return this->m_engines.isEngineOn(number);
}
double CAircraftParts::isOnGroundInterpolated() const
{
if (this->m_isOnGroundInterpolated < 0)
{
return this->m_isOnGround ? 1.0 : 0.0;
}
return this->m_isOnGroundInterpolated;
}
} // namespace
} // namespace