From 95521e0ea24b8e59b617d0d65105adb3dd89d48a Mon Sep 17 00:00:00 2001 From: Benjamin Leskey Date: Fri, 10 Feb 2023 06:38:04 -0500 Subject: [PATCH] Only autodrive over air if we actually have sufficient rotor lift. (#63487) --- src/vehicle_autodrive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_autodrive.cpp b/src/vehicle_autodrive.cpp index eb6d4e3061fd3..6b5ca552425dd 100644 --- a/src/vehicle_autodrive.cpp +++ b/src/vehicle_autodrive.cpp @@ -807,7 +807,7 @@ void vehicle::autodrive_controller::precompute_data() // initialize car and driver properties data.land_ok = driven_veh.valid_wheel_config(); data.water_ok = driven_veh.can_float(); - data.air_ok = driven_veh.is_flyable(); + data.air_ok = driven_veh.has_sufficient_rotorlift(); data.max_speed_tps = std::min( MAX_SPEED_TPS, driven_veh.safe_velocity() / VMIPH_PER_TPS ); data.acceleration.resize( data.max_speed_tps ); for( int speed_tps = 0; speed_tps < data.max_speed_tps; speed_tps++ ) {