forked from mirror/OpenTTD
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
This commit is contained in:
@@ -1598,7 +1598,7 @@ static bool TrainTrackFollower(uint tile, TrainTrackFollowerData *ttfd, int trac
|
||||
return length >= ttfd->best_track_dist;
|
||||
|
||||
// didn't find station
|
||||
dist = GetTileDist(tile, ttfd->dest_coords);
|
||||
dist = DistanceManhattan(tile, ttfd->dest_coords);
|
||||
if (dist < ttfd->best_bird_dist) {
|
||||
ttfd->best_bird_dist = dist;
|
||||
ttfd->best_track = state[1];
|
||||
|
Reference in New Issue
Block a user