Changeset - r4410:dd3a8e5ed49b
[Not reviewed]
master
0 1 0
KUDr - 18 years ago 2006-08-27 07:04:14
kudr@openttd.org
(svn r6163) -Codechange: distance rounded up (correction of r6162)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
yapf/yapf_road.cpp
Show inline comments
 
@@ -421,7 +421,7 @@ uint YapfRoadVehDistanceToTile(const Veh
 
	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;
 
}
 

	
0 comments (0 inline, 0 general)