FS#6476 - Suggested changes for pathfinding for automatic servicing
I saw several things in YAPF and NPF that in my opinion can be improved:
1) Using a FindDepotData struct in YAPF makes code more readable.
2) NPF doesn't use the max_distance provided when looking for a RAIL OR ROAD depot for automatic servicing. The code included the option of using it, but the pathfinder didn't get the value of the max_distance to look ahead.
3) YAPF doesn't use the max_distance provided when looking for a ROAD depot for automatic servicing.
See attached patches.
This task depends upon