(svn r11526) -Codechange: Rename the function delta fitting to the naming style

This commit is contained in:
skidd13
2007-11-26 16:01:29 +00:00
parent d736a04b59
commit 734b22e070
9 changed files with 23 additions and 23 deletions

View File

@@ -40,8 +40,8 @@ static const uint _trackdir_length[TRACKDIR_END] = {
*/
static uint NPFDistanceTrack(TileIndex t0, TileIndex t1)
{
const uint dx = delta(TileX(t0), TileX(t1));
const uint dy = delta(TileY(t0), TileY(t1));
const uint dx = Delta(TileX(t0), TileX(t1));
const uint dy = Delta(TileY(t0), TileY(t1));
const uint straightTracks = 2 * min(dx, dy); /* The number of straight (not full length) tracks */
/* OPTIMISATION: