mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: Remove unused DepotCommandFlag::LocateHangar flag (#13775)
parent
52bada216c
commit
61e8dcfca7
|
@ -1651,7 +1651,7 @@ static void AircraftEventHandler_HeliTakeOff(Aircraft *v, const AirportFTAClass
|
||||||
/* Send the helicopter to a hangar if needed for replacement */
|
/* Send the helicopter to a hangar if needed for replacement */
|
||||||
if (v->NeedsAutomaticServicing()) {
|
if (v->NeedsAutomaticServicing()) {
|
||||||
Backup<CompanyID> cur_company(_current_company, v->owner);
|
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();
|
cur_company.Restore();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,6 @@ enum class DepotCommandFlag : uint8_t {
|
||||||
Service, ///< The vehicle will leave the depot right after arrival (service only)
|
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)
|
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
|
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>;
|
using DepotCommandFlags = EnumBitSet<DepotCommandFlag, uint8_t>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue