mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Ref T436, underflow detection for FSX
* utility functions * force gnd flag to avoid underflow
This commit is contained in:
@@ -149,6 +149,21 @@ namespace BlackMisc
|
||||
return unknown;
|
||||
}
|
||||
|
||||
bool CAircraftSituation::isCorrectedAltitude(CAircraftSituation::AltitudeCorrection correction)
|
||||
{
|
||||
switch (correction)
|
||||
{
|
||||
case Underflow:
|
||||
case DraggedToGround:
|
||||
return true;
|
||||
case NoElevation:
|
||||
case NoCorrection:
|
||||
case AGL:
|
||||
default: break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const QString &CAircraftSituation::gndElevationInfoToString(GndElevationInfo details)
|
||||
{
|
||||
static const QString noDetails("no details");
|
||||
|
||||
Reference in New Issue
Block a user