From 61e8dcfca7510502b2ff1c1baf544a888d37c0d6 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 9 Mar 2025 18:07:47 +0000 Subject: [PATCH] Cleanup: Remove unused DepotCommandFlag::LocateHangar flag (#13775) --- src/aircraft_cmd.cpp | 2 +- src/vehicle_type.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 6169c97fd9..f109a39b1d 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1651,7 +1651,7 @@ static void AircraftEventHandler_HeliTakeOff(Aircraft *v, const AirportFTAClass /* Send the helicopter to a hangar if needed for replacement */ if (v->NeedsAutomaticServicing()) { Backup cur_company(_current_company, v->owner); - Command::Do(DoCommandFlag::Execute, v->index, DepotCommandFlags{DepotCommandFlag::Service, DepotCommandFlag::LocateHangar}, {}); + Command::Do(DoCommandFlag::Execute, v->index, DepotCommandFlag::Service, {}); cur_company.Restore(); } } diff --git a/src/vehicle_type.h b/src/vehicle_type.h index a1331b9273..49028c0eac 100644 --- a/src/vehicle_type.h +++ b/src/vehicle_type.h @@ -56,7 +56,6 @@ enum class DepotCommandFlag : uint8_t { Service, ///< The vehicle will leave the depot right after arrival (service only) MassSend, ///< Tells that it's a mass send to depot command (type in VLW flag) DontCancel, ///< Don't cancel current goto depot command if any - LocateHangar, ///< Find another airport if the target one lacks a hangar }; using DepotCommandFlags = EnumBitSet;