summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-26 16:01:29 +0000
committerskidd13 <skidd13@openttd.org>2007-11-26 16:01:29 +0000
commit734b22e070ca1dac717780d0a4d1ca962c4ddfbf (patch)
tree14935bc71c99622f02f216f13d5e4c712b21ce20 /src/map.cpp
parentd736a04b59a202023c0c72ff1d2347c0eb83ecff (diff)
downloadopenttd-734b22e070ca1dac717780d0a4d1ca962c4ddfbf.tar.xz
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 7035f955c..4136740c0 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -184,8 +184,8 @@ extern const TileIndexDiffC _tileoffs_by_dir[] = {
*/
uint DistanceManhattan(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));
return dx + dy;
}
@@ -216,8 +216,8 @@ uint DistanceSquare(TileIndex t0, TileIndex t1)
*/
uint DistanceMax(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));
return max(dx, dy);
}
@@ -232,8 +232,8 @@ uint DistanceMax(TileIndex t0, TileIndex t1)
*/
uint DistanceMaxPlusManhattan(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));
return dx > dy ? 2 * dx + dy : 2 * dy + dx;
}