diff options
author | rubidium <rubidium@openttd.org> | 2010-12-11 19:48:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-11 19:48:31 +0000 |
commit | 7cf40e5d250bc07e5e0f3cacafc8b0b659889a37 (patch) | |
tree | 20ddad1d0f0bb906f79389f8148430565a8f3940 /src/map_func.h | |
parent | ae30f4d010ffe25f3bf2b89d6f15cbed6e956e9f (diff) | |
download | openttd-7cf40e5d250bc07e5e0f3cacafc8b0b659889a37.tar.xz |
(svn r21470) -Codechange: add method to get the distance from the edge in a given direction
Diffstat (limited to 'src/map_func.h')
-rw-r--r-- | src/map_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map_func.h b/src/map_func.h index 68c555e6d..42d6dd142 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -331,6 +331,7 @@ uint DistanceSquare(TileIndex, TileIndex); ///< euclidian- or L2-Norm squared uint DistanceMax(TileIndex, TileIndex); ///< also known as L-Infinity-Norm uint DistanceMaxPlusManhattan(TileIndex, TileIndex); ///< Max + Manhattan uint DistanceFromEdge(TileIndex); ///< shortest distance from any edge of the map +uint DistanceFromEdgeDir(TileIndex, DiagDirection); ///< distance from the map edge in given direction /** * A loop which iterates to a square of tiles |