mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T231, utility functions
* corrected altitude also considering CG * 0 if CG is NULL
This commit is contained in:
@@ -45,6 +45,12 @@ namespace BlackMisc
|
||||
return m_elevationPlane.isWithinRange(coordinate);
|
||||
}
|
||||
|
||||
const CLength &CInterpolationHints::getCGAboveGroundOrZero() const
|
||||
{
|
||||
static const CLength zero;
|
||||
return this->hasCGAboveGround() ? this->getCGAboveGround() : zero;
|
||||
}
|
||||
|
||||
void CInterpolationHints::setAircraftParts(const CAircraftParts &parts, bool hasParts)
|
||||
{
|
||||
m_hasParts = hasParts;
|
||||
|
||||
Reference in New Issue
Block a user