1
0
Fork 0

Disable on-final for heliport starts

This commit is contained in:
James Turner 2018-06-28 16:22:55 +01:00
parent f6106e39d1
commit aa61c55168

View file

@ -499,9 +499,16 @@ void LocationController::setBaseLocation(QmlPositioned* pos)
if (FGPositioned::isAirportType(m_location.ptr())) { if (FGPositioned::isAirportType(m_location.ptr())) {
m_airportLocation = static_cast<FGAirport*>(m_location.ptr()); m_airportLocation = static_cast<FGAirport*>(m_location.ptr());
// disable offset when selecting a heliport
if (m_airportLocation->isHeliport()) {
qInfo() << "disabling offset";
m_onFinal = false;
}
} else { } else {
m_airportLocation.clear(); m_airportLocation.clear();
} }
emit offsetChanged();
emit baseLocationChanged(); emit baseLocationChanged();
} }