diff options
-rw-r--r-- | yapf/yapf_road.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yapf/yapf_road.cpp b/yapf/yapf_road.cpp index 483f82a0f..76bd7abcc 100644 --- a/yapf/yapf_road.cpp +++ b/yapf/yapf_road.cpp @@ -421,8 +421,7 @@ uint YapfRoadVehDistanceToTile(const Vehicle* v, TileIndex tile) uint dist = pfnDistanceToTile(v, tile); // convert distance to tiles if (dist != UINT_MAX) - dist = (dist + 10 - 1) / 10; // TODO: change road YAPF unit from 10 to YAPF_TILE_LENGTH - + dist = (dist + 10 - 1) / YAPF_TILE_LENGTH; return dist; } |