Disable on-final for heliport starts
This commit is contained in:
parent
f6106e39d1
commit
aa61c55168
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue