FS#6493 - Helicopters do not autorenew/autoreplace while in routes consisting of heliports

Attached to Project: OpenTTD
Opened by Juanjo (juanjo) - Saturday, 06 August 2016, 15:19 GMT
Type Bug
Category Core
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Helicopters are serviced each time they take off from an helipad/heliport, but do not autorenew or autoreplace on helipads.
Old helicopters with routes involving only heliports (no hangars) are not headed to an airport with a hangar when they need autorenewing or autoreplacing.

By the way, the DEPOT_LOCATE_HANGAR flag is currently unused.
This task depends upon

Comment by frosch (frosch) - Sunday, 07 August 2016, 09:24 GMT
The code for DEPOT_LOCATE_HANGAR apparently got lost in r12658.
Comment by Peter Nelson (peter1138) - Tuesday, 14 March 2017, 08:29 GMT
Only rarely. It's mainly because when the serviceathelipad setting is enabled, helicopters are never eligible for autorenew/autoreplace as they have always just been serviced by the time the helicopter takes off.