diff options
author | rubidium <rubidium@openttd.org> | 2009-04-24 22:27:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-24 22:27:21 +0000 |
commit | 00ed8c6f2706d099be84c080759e1e038e90fcb8 (patch) | |
tree | 4bba7d7253dd255194164b00e7f9a39bb1f1fa1a /src/map_func.h | |
parent | f2f476a5701cb00b11367ff5afb6e9d5114e0056 (diff) | |
download | openttd-00ed8c6f2706d099be84c080759e1e038e90fcb8.tar.xz |
(svn r16138) -Codechange: move GetClosestWaterDistance to map*
Diffstat (limited to 'src/map_func.h')
-rw-r--r-- | src/map_func.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map_func.h b/src/map_func.h index 932e2f8fd..038942cd9 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -431,4 +431,9 @@ static inline TileIndex RandomTileSeed(uint32 r) */ #define RandomTile() RandomTileSeed(Random()) +/** + * Finds the distance for the closest tile with water/land given a tile + */ +uint GetClosestWaterDistance(TileIndex tile, bool water); + #endif /* MAP_FUNC_H */ |