OpenTTD

Tasklist

FS#6476 - Suggested changes for pathfinding for automatic servicing

Attached to Project: OpenTTD
Opened by Juanjo (juanjo) - Sunday, 05 June 2016, 08:29 GMT
Type Patch
Category Core
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

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

Loading...