diff options
author | KUDr <KUDr@openttd.org> | 2006-08-27 06:52:25 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-08-27 06:52:25 +0000 |
commit | be594eff6e1f99b86698bd22c46acdc153bfc247 (patch) | |
tree | 2175ee2985c507ddca27b2eef352beffd5a6192e | |
parent | f938db661947368a6beafd2af7b9c4e7dc886b5e (diff) | |
download | openttd-be594eff6e1f99b86698bd22c46acdc153bfc247.tar.xz |
(svn r6162) -Fix: Multistop problem caused by incorrect distance returned by YapfRoadVehDistanceToTile() (by mart3p)
-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; } |