From 00ed8c6f2706d099be84c080759e1e038e90fcb8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 24 Apr 2009 22:27:21 +0000 Subject: (svn r16138) -Codechange: move GetClosestWaterDistance to map* --- src/map_func.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map_func.h') 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 */ -- cgit v1.2.3-54-g00ecf