1
0
Fork 0

(svn r6163) -Codechange: distance rounded up (correction of r6162)

release/0.5
KUDr 2006-08-27 07:04:14 +00:00
parent c279e53f8e
commit bb30f580a4
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +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) / YAPF_TILE_LENGTH;
dist = (dist + YAPF_TILE_LENGTH - 1) / YAPF_TILE_LENGTH;
return dist;
}