From d642a55b9126f8ac8e6a4f6736aaa621bc3e9f93 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 5 Jan 2009 17:48:54 +0000 Subject: (svn r14847) -Codechange: generalise the circular search to search around a rectangle (PhilSophus) --- 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 ff539b8af..2a971d1d6 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -393,6 +393,11 @@ typedef bool TestTileOnSearchProc(TileIndex tile, void *user_data); */ bool CircularTileSearch(TileIndex *tile, uint size, TestTileOnSearchProc proc, void *user_data); +/** + * Searches for some cirumstances of a tile around a given rectangle with a helper function. + */ +bool CircularTileSearch(TileIndex *tile, uint radius, uint w, uint h, TestTileOnSearchProc proc, void *user_data); + /** * Get a random tile out of a given seed. * @param r the random 'seed' -- cgit v1.2.3-54-g00ecf