diff options
author | rubidium <rubidium@openttd.org> | 2009-01-05 17:48:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-05 17:48:54 +0000 |
commit | d642a55b9126f8ac8e6a4f6736aaa621bc3e9f93 (patch) | |
tree | f94c0b77431ab62958b25332bb29340cfca272a0 /src/map_func.h | |
parent | d5f311d3a2f96190674325ee64301e60f6db4f3e (diff) | |
download | openttd-d642a55b9126f8ac8e6a4f6736aaa621bc3e9f93.tar.xz |
(svn r14847) -Codechange: generalise the circular search to search around a rectangle (PhilSophus)
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 ff539b8af..2a971d1d6 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -394,6 +394,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' * @return a valid tile |