From aa61c55168264c7587092af422b63ceeb4dc1c71 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 28 Jun 2018 16:22:55 +0100 Subject: [PATCH] Disable on-final for heliport starts --- src/GUI/LocationController.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/GUI/LocationController.cxx b/src/GUI/LocationController.cxx index b58415998..551db1b92 100644 --- a/src/GUI/LocationController.cxx +++ b/src/GUI/LocationController.cxx @@ -499,9 +499,16 @@ void LocationController::setBaseLocation(QmlPositioned* pos) if (FGPositioned::isAirportType(m_location.ptr())) { m_airportLocation = static_cast(m_location.ptr()); + // disable offset when selecting a heliport + if (m_airportLocation->isHeliport()) { + qInfo() << "disabling offset"; + m_onFinal = false; + } } else { m_airportLocation.clear(); } + + emit offsetChanged(); emit baseLocationChanged(); }