forked from mirror/OpenTTD
(svn r14847) -Codechange: generalise the circular search to search around a rectangle (PhilSophus)
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user