refs #865, allow to override in setGroundElevationFromHint

This commit is contained in:
Klaus Basan
2017-01-29 00:06:06 +01:00
committed by Mathew Sutcliffe
parent 085f25fa86
commit bc3bd41c97
2 changed files with 4 additions and 4 deletions

View File

@@ -321,9 +321,9 @@ namespace BlackMisc
this->m_interpolationLogs.clear();
}
void IInterpolator::setGroundElevationFromHint(const CInterpolationHints &hints, CAircraftSituation &situation)
void IInterpolator::setGroundElevationFromHint(const CInterpolationHints &hints, CAircraftSituation &situation, bool override)
{
if (situation.hasGroundElevation()) { return; }
if (!override && situation.hasGroundElevation()) { return; }
const CAltitude elevation = hints.getGroundElevation(situation);
if (elevation.isNull()) { return; }
situation.setGroundElevation(elevation);