Plane: soaring: No action if in landing sequence.

This commit is contained in:
Samuel Tabor 2021-07-28 09:47:38 +01:00 committed by Andrew Tridgell
parent 4564992b47
commit 23f6f38390
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ void Plane::update_soaring() {
// Check if soaring is active. Also sets throttle suppressed // Check if soaring is active. Also sets throttle suppressed
// status on active state changes. // status on active state changes.
plane.g2.soaring_controller.update_active_state(); bool override_disable = mission.get_in_landing_sequence_flag();
plane.g2.soaring_controller.update_active_state(override_disable);
if (!g2.soaring_controller.is_active()) { if (!g2.soaring_controller.is_active()) {
return; return;