mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #852 Added a floating-point onGround value in CAircraftParts.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user