Is there any way telling FollowTrack to spit out the actual distance? Somehow the only response is '1' I get
Celestar
FollowTrack distance output?
Moderator: OpenTTD Developers
rdf.maxtracklen will give you the best distance (by road) to the tile which is within rdf.mindist tiles of the destination.
So if the algorithm reaches the destination then rdf.mindist is 0 and rdf.maxtracklen will tell you how many road tiles have to be followed to get there.
These variables can be examined after the call to the inital FollowTrack.
I hope this makes sence
So if the algorithm reaches the destination then rdf.mindist is 0 and rdf.maxtracklen will tell you how many road tiles have to be followed to get there.
These variables can be examined after the call to the inital FollowTrack.
I hope this makes sence
Who is online
Users browsing this forum: No registered users and 2 guests