1
0
Fork 0

Cleanup: Remove unused DepotCommandFlag::LocateHangar flag (#13775)

pull/13787/head
Jonathan G Rennison 2025-03-09 18:07:47 +00:00 committed by GitHub
parent 52bada216c
commit 61e8dcfca7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -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<CompanyID> cur_company(_current_company, v->owner);
Command<CMD_SEND_VEHICLE_TO_DEPOT>::Do(DoCommandFlag::Execute, v->index, DepotCommandFlags{DepotCommandFlag::Service, DepotCommandFlag::LocateHangar}, {});
Command<CMD_SEND_VEHICLE_TO_DEPOT>::Do(DoCommandFlag::Execute, v->index, DepotCommandFlag::Service, {});
cur_company.Restore();
}
}

View File

@ -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<DepotCommandFlag, uint8_t>;