mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Ref T290, XPlane refactoring
* typo getRemoteAircraftsData -> getRemoteAircraftData (no "s") * typo getEelevationAtPosition (double "Ee") * get functions "const" * added unit for some variables such as latitudeDeg
This commit is contained in:
@@ -971,8 +971,8 @@ namespace BlackMisc
|
||||
if (this->hasGroundElevation())
|
||||
{
|
||||
static const CLength threshold(400, CLengthUnit::m());
|
||||
const CLength a = this->getHeightAboveGround();
|
||||
if (!a.isNull() && a >= threshold) { return true; } // too high for ground
|
||||
const CLength aboveGround = this->getHeightAboveGround();
|
||||
if (!aboveGround.isNull() && aboveGround >= threshold) { return true; } // too high for ground
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user