mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T773, audit "null" elevation if tried to be stored
This commit is contained in:
committed by
Mat Sutcliffe
parent
14ab60cb73
commit
5604cff6bf
@@ -56,7 +56,11 @@ namespace BlackMisc
|
|||||||
|
|
||||||
bool ISimulationEnvironmentProvider::rememberGroundElevation(const CCallsign &requestedForCallsign, const CElevationPlane &elevationPlane)
|
bool ISimulationEnvironmentProvider::rememberGroundElevation(const CCallsign &requestedForCallsign, const CElevationPlane &elevationPlane)
|
||||||
{
|
{
|
||||||
if (!elevationPlane.hasMSLGeodeticHeight()) { return false; }
|
if (!elevationPlane.hasMSLGeodeticHeight())
|
||||||
|
{
|
||||||
|
BLACK_AUDIT_X(false, Q_FUNC_INFO, "Elevation plane needs to be MSL NON NULL");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return this->rememberGroundElevation(requestedForCallsign, elevationPlane, elevationPlane.getRadius());
|
return this->rememberGroundElevation(requestedForCallsign, elevationPlane, elevationPlane.getRadius());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user